The remarkable turn of events left Republican congressional leaders, in control of both chambers of the legislative branch, “shell-shocked” and “visibly annoyed,” and showcased how a president who also authored “The Art of the Deal” actually cuts one.

Trump’s stunning agreement to endorse a plan proposed by Senate Minority Leader Charles E. Schumer and House Minority Leader Nancy Pelosi came during a Wednesday morning meeting with leaders from both parties in the Oval Office, the first such meeting of Trump’s presidency.

Several Republicans briefed on the meeting said that Trump, who has been absent a major legislative achievement for his first seven months in office, was hungry for a deal. It also came after he was warned of a packed legislative calendar that could have pushed off tax reform past this fall.