Pulling away from an agreed American and European policy , President Vladimir V. Putin of Russia said Thursday that he was considering inviting the newly victorious leaders of the radical Palestinian Islamic group Hamas to Moscow to discuss solutions to the conflict in the Middle East .