WASHINGTON, Feb 6 (Reuters) - U.S. President Donald Trump said on Tuesday he would "love" to see another government shutdown as Republicans and Democrats in Congress worked to reach a budget deal that would prevent federal agencies from having to close their doors this week.
The Republican president said he would welcome a shutdown if a spending deal did not include changes to immigration laws, challenging Democrats on the issue that led to a three-day partial closure of government agencies last month.
He spoke even as Republican and Democratic leaders in the Senate said they were closing in on an agreement that could dramatically raise spending levels for both military and domestic programs and ensure that the government will keep operating when temporary spending expires on Thursday.
The deal could potentially put an end to the brinkmanship over spending that has periodically roiled Washington and that resulted in funds running out for the government in January.
"I'm optimistic that very soon we'll be able to reach an agreement," Senate Republican Leader Mitch McConnell told reporters.
Senate Democratic Leader Chuck Schumer said the agreement would include an increase for domestic programs like drug treatment and broadband infrastructure that Democrats have sought, as well as a military spending increase championed by Republicans.
"We're making real progress on a spending deal," he told reporters.
However, Trump said he would welcome a shutdown if Congress does not strengthen border protections and "take care of our military."
"I'd love to see a shutdown if we don't get this stuff taken care of," he said at a White House discussion on immigration.
January's shutdown came about after Democrats insisted that any spending bill must also include protections for young immigrants who were brought to the country illegally as children, who are known as "Dreamers."
Democrats are not taking that approach this time around, and some of Trump's fellow Republicans, who control both chambers of Congress, are eager to keep spending and immigration separate.
"We don't need a government shutdown on this," Republican Representative Barbara Comstock told Trump at the White House.
The potential budget deal in the Senate could head off another round of last-minute posturing that preceded last month's shutdown.
The Republican-led U.S. House of Representatives was set to vote on Tuesday evening on a stop-gap spending bill that would fund much of the government through March 23 and fund the military through Sept. 30, the end of the fiscal year.
That measure is not likely to survive unscathed in the Senate, where Republicans cannot pass spending bills without some Democratic support. McConnell and Schumer could incorporate their agreement on domestic and military spending into the stop-gap measure, which then would have to win passage in the House.
Congress also faces another looming deadline, as the United States could have trouble paying its bills within weeks if lawmakers do not take the politically painful step of raising the debt ceiling.
The third-ranking House Republican, Representative Steve Scalise, said negotiations over the debt ceiling were being coupled with the Senate budget talks.
Lawmakers have been struggling to reach a deal on an immigration bill, despite broad public support for helping Dreamers - hundreds of thousands of young Latinos who were allowed to study and work without fear of deportation under a program set up by Democratic former President Barack Obama.
Trump last year ordered those protection removed by March 5, saying Congress should come up with a legislative solution.
A federal court blocked the Trump administration last month from ending the program, and the administration's appeal is pending before the Supreme Court.
Democrats and Republicans in Congress are trying to agree on bipartisan legislation that would protect Dreamers and boost border security.
Trump has said any immigration deal must also include funding for his long-promised wall along the U.S.-Mexico border, along with changes to programs for legal immigration that would assess applicants on their skills, rather than their country of origin or ties to U.S. residents. Democrats oppose that idea.
House Speaker Paul Ryan said on Tuesday that any bill that comes up for a vote in the House must have Trump's backing. (Additional reporting by Makini Brice, David Morgan and Amanda Becker; Writing by Andy Sullivan; Editing by Frances Kerry)