The president’s staunch support for Israel risks damaging his prospects for re-election