Outgoing Texas Republican senator John Cornyn withheld his “blue slip” for Donald Trump judicial nominee T Elliot Gaiser on Wednesday, blocking Gaiser’s appointment to a district court in northern Texas.

Cornyn, who is leaving the Senate after nearly 24 years following his primary loss to a Trump-backed challenger, told the Associated Press he would not support Gaiser, a 37-year-old Justice Department official.

“He’s not from Texas. He hasn’t been vetted. And this is a lifetime job, and there’s better-qualified people to hold that job,” Cornyn said on Wednesday.

Cornyn’s decision came a day after he had a heated argument with fellow Texas Republican senator Ted Cruz on the Senate floor over Gaiser’s nomination, according to the Washington Sun. The argument was reportedly loud enough for people in the press gallery to hear Cornyn tell Cruz: “I don’t find you credible. I’m mad at you.”

At one point, Cornyn told Cruz he was upset at someone “for ending my career”, though it is unclear whether he was referring to Trump or Cruz.

In a statement obtained by Reuters, Cruz said: “If the ⁠Senate Judiciary Committee does not move Gaiser forward, the people of Texas will pay the price because it will effectively give the judicial seat to the Democrats, who will keep it vacant in perpetuity.” Cruz said the White House indicated it would be “impossible” to get a new nominee confirmed because the FBI’s background check would take too long.

Republicans are trying to confirm as many of Trump’s judicial nominees as possible before Congress recesses for the rest of the year and Democrats take over in January. Under a longstanding tradition, the Senate Judiciary Committee chair will support a president’s judicial nominee only when the senators from the state concerned approve. That approval is known as a “blue slip”.

Cornyn said he recommended Steve Fahey, a federal prosecutor in Texas, for the vacancy on the northern district of Texas court. Gaiser did not appear before the Senate Judiciary Committee on Wednesday.

The Justice Department said in a statement obtained by the AP that it was “deeply disappointing that Senator Cornyn would choose political obstruction over advancing a highly qualified nominee”.

Kevin Roberts, president of the Heritage Foundation, the conservative thinktank behind Project 2025, criticized Cornyn on social media. “John Cornyn is going out as the Republican Texas Senator who helped get radical leftist James Talarico’s agenda started early. What a legacy,” Roberts wrote on X.

Cornyn called Roberts “irrelevant” and said his “sycophancy has destroyed the credibility of a once great institution”. The article says tensions between Cornyn and the White House followed Trump’s decision not to endorse Cornyn for re-election and instead to back Ken Paxton in the Senate race. Paxton ultimately lost to Democrat James Talarico.