The prime minister was invited by the Republican leadership of Congress without the White House being informed, and he came specifically to attack one of the president’s major foreign policy initiatives, negotiations toward an arms-control accord with Iran.