The crisis in the Middle East is looming over the race for the White House as the campaign enters its final weeks