Trump, according to several people with knowledge of the discussions, was upset that Gorsuch had pointedly distanced himself from the president in a private February meeting with Sen. Richard Blumenthal (D-Conn.), telling the senator he found Trump’s repeated attacks on the federal judiciary “disheartening” and “demoralizing.”

The president worried that Gorsuch would not be “loyal,” one of the people said, and told aides that he was tempted to pull Gorsuch’s nomination — and that he knew plenty of other judges who would want the job.

It is unclear whether Trump’s “explosion,” as another administration official described it, truly put Gorsuch’s nomination in jeopardy or whether the president was expressing his frustration aloud, as he often does. But at the time, some in the White House and on Capitol Hill feared that Gorsuch’s confirmation — which had been shaping up to be one of the clearest triumphs of Trump’s tumultuous young presidency — was on the verge of going awry.