Several countries can claim some credit for the tentative memorandum of understanding to end the war between Iran and the United States, which officials from both countries plan to sign later this week. Pakistan had for some time led negotiations. Saudi Arabia, Egypt, and Oman were involved in elements of the talks. But to hear Donald Trump tell the story, the whole deal might not have materialized without the intervention of a crucial friend in the neighborhood.