The prime minister’s plans to deepen ties with the U.S. and win commitments to the alliance have been derailed by the chaos unleashed by the conflict in the Middle East.