At the same hearing, Sen. Lindsey O. Graham (R-S.C.), who had joined Sen. Richard J. Durbin (D-Ill.) at the meeting in trying to persuade Trump to sign on to their bipartisan immigration proposal, said the negotiations had turned into a "s---show."
And Sen. Tom Cotton (R-Ark.), a conservative ally of Trump's, dismissed the bipartisan pact as "a mass amnesty bill" and said "what they proposed was a joke."
Behind the drama, a Friday deadline loomed to pass a new spending bill in time to avert a government shutdown. Aides to top congressional leaders met again Tuesday to try to salvage a deal to meet a March deadline to legalize the status of undocumented immigrants brought to this country as children, known as "dreamers," while also beefing up border security. But leaders publicly doubted that they had time to pair such a deal with a short-term plan to keep the government open beyond Friday.
"With no imminent deadline on #immigration, and with bipartisan talks well underway, there is no reason why Congress should hold government funding hostage over the issue of illegal immigration," Senate Majority Leader Mitch McConnell (R-Ky.) tweeted Tuesday.
And while Graham continued to seek support for his pact with Durbin, White House officials declared the proposal dead and began encouraging lawmakers to start over.
Aides to leaders from both parties and both chambers gathered Tuesday in the office of House Majority Leader Kevin McCarthy (R-Calif.) to keep negotiations going. In addition, the White House continued to seek a vote on a separate, conservative proposal floated last week by two immigration hard-liners, Reps. Bob Goodlatte (R-Va.) and Mark Meadows (R-N.C.), according to Trump's legislative affairs director, Marc Short.
Meanwhile, GOP leaders kept pushing Tuesday to pass a short-term, stand-alone spending bill with no immigration reforms included. Talks included possible provisions to court both liberal and conservative votes: eliminating a tax on high-priced health plans, including those in the Affordable Care Act, and renewing the Children's Health Insurance Program for six years.
If such a measure succeeded, it would probably push negotiations on immigration into February, an outcome Democrats hope to avoid because of the leverage they believe they have to exact an immigration deal alongside the spending deadline.
The lack of progress and the acrimonious words Tuesday exposed the extent to which Trump's vulgar comments injected mistrust into already tense negotiations.
"You can't remember the words of your commander in chief," Sen. Cory Booker (D-N.J.) said to Nielsen during the hearing, slamming his hand on the table, his voice shaking. "I find that unacceptable."
Durbin began his questioning of Nielsen by saying: "I hope you remember me. We were at two meetings together" last week. He asked her to clarify what kind of language Trump used.
"Ah, let's see," Nielsen said. "Strong language, there was — I apologize, I don't remember a specific word." She added that "general profanity" was used by several attendees.
"Did you hear me use profanity?" Durbin asked.
"No, sir, nor did I," Nielsen said, adding that Graham had used "tough language" in response to Trump.
Later, Graham detailed how Durbin had phoned Trump around 10 a.m. Thursday to let him know about their bipartisan breakthrough. Graham said he and Durbin then made arrangements to meet with the president at noon.
"So what happened between 10 and 12?" Graham asked Nielsen.
"I don't know," Nielsen replied.
"I don't either, and I'm going to find out," Graham said.
He credited Trump for hosting lawmakers the previous Tuesday and encouraging them to present a bipartisan deal.
"Tuesday we had a president that I was proud to golf with, call my friend, who understood immigration had to be bipartisan," the senator said, adding later, "I don't know where that guy went, but I want him back."
Graham blamed hard-liners on Trump's staff — not the president — for sinking a potential bipartisan deal.
"We cannot do this with people in charge at the White House who have an irrational view of how to fix immigration," he told reporters.
The public exchanges also showed how much advocates for both sides are seeking to reach Trump directly.
During a Senate floor speech, Minority Leader Charles E. Schumer (D-N.Y.) told Trump, "Everyone is talking about how bigoted your comments were last week."
He continued, "If you want to begin the long road back to prove you're not prejudiced or bigoted, support the bipartisan compromise that three Democrats and three Republicans have put before you."
But Cotton insisted Trump had already compromised with Democrats and defended the president against the accusations by Graham, Durbin and others.
"The president did not repeatedly say vile, racist, hateful things, as Senator Durbin said," Cotton told reporters. "If he did, why didn't Senator Durbin speak up in the meeting, why didn't he slam his papers down and walk out, why didn't he go to the North Portico and hold a press conference? Why did he wait to hold some random, impromptu press conference when he got back to Chicago the next day?"
At the Judiciary Committee hearing, Durbin and Nielsen also revealed that Trump had pressed lawmakers in the Thursday meeting to provide $20 billion this year so that a new wall along the U.S.-Mexico border could be constructed in the coming year. That's more than the $18 billion the Trump administration told Congress earlier this month that it wanted to build physical barriers over the next decade.
"I think the president is encouraging us to go as quickly as we can," Nielsen said. "As you know, it's a very complicated issue, building the wall, for a whole variety of — a whole variety of reasons."
Durbin rejected Trump's request as "physically, legally impossible as a condition" for giving dreamers permanent legal status.
At the White House, Trump dismissed reports that he had called for more immigrants from Norway and other parts of Europe during last week's Oval Office encounter. "I want them to come in from everywhere — everywhere," he told reporters.
Trump also met with Rep. Mia Love (Utah), the only black Republican woman in Congress, whose parents are from Haiti. She was sharply critical of the president's comments in the immigration meeting last week.
In a statement, Love said she and Trump held a "substantive and productive" 30-minute meeting, and she pledged to work on a bipartisan solution for dreamers and border security.
At the Capitol, Short, who met with aides to top House and Senate leaders, said that negotiators are "fairly optimistic there could be a deal" on immigration. But doing so this week, he said, would be "fairly Herculean."
In a sign that the White House is still trying to work with Democrats, White House Chief of Staff John F. Kelly is scheduled to meet Wednesday morning with members of the Congressional Hispanic Caucus, a bloc he has sparred with in the past over immigration policy.
At Tuesday's hearing, Nielsen served as a proxy for Democrats eager to vent their frustrations with Trump. Under questioning, she admitted that she has never formally met with dreamers, who are directly affected by her department's decisions and actions.
And Sen. Patrick J. Leahy (D-Vt.) persistently questioned her over Trump's campaign pledge to make Mexico pay for new construction along the southern border.
"Have we opened an account that Mexico can put the money in to pay for it?" Leahy asked. "What arrangements do we have with Mexico to pay for it?"
"I know that we have arrangements with Mexico to secure our border," Nielsen said, before Leahy cut her off.
"Do we have arrangements with them to pay for the wall, as President Trump promised the American people he would do?" he asked, raising his voice. "That's an easy answer, yes or no."
"I am not aware. I don't know what you mean by 'arrangement.' We have a lot of agreements with them to increase border security," Nielsen replied.
"Are any of them to pay for a wall?" Leahy asked.
"How do you mean pay, sir?" Nielsen responded. "Do you mean fees? Do you mean through — there's a variety of ways."
"Well, usually when something is paid for, you pay for it with money," Leahy said.
Nielsen did not directly answer the question about a bank account for Mexican border wall deposits.
"My priority is to increase border security and to build that wall, that will work," she said. "That's my priority, sir. That's what I'm focused on."
Josh Dawsey, Mike DeBonis and Erica Werner contributed to this report.