They reflect at least in part a growing sense of confidence because of shifts in the Middle East in recent months , especially the Hamas victory in Palestinian elections , political paralysis in Lebanon and the intense difficulties facing the United States in trying to stabilize Iraq and stymie Iran 's drive toward nuclear power .