US senator John McCain accused President Barack Obama of throwing a “temper tantrum” over comments by Israeli prime minister Benjamin Netanyahu, adding to the conflict between the White House and the Republican-dominated Congress over Israel.