He was incensed by the arguments of Secretary of State Rex ­Tillerson, Defense Secretary Jim Mattis and others that the landmark 2015 deal, while flawed, offered stability and other benefits. He did not want to certify to Congress that the agreement remained in the vital U.S. national security interest and that Iran was meeting its obligations. He did not think either was true.

“He threw a fit,” said one person familiar with the meeting. “. . . He was furious. Really furious. It’s clear he felt jammed.”

So White House national security adviser H.R. McMaster and other senior advisers came up with a plan — one aimed at accommodating Trump’s loathing of the Iran deal as “an embarrassment” without killing it outright.