US President Donald Trump has said he is prepared for a partial shutdown of the US government – now entering its third week – to last years.
After meeting top Democrats, he also said he could declare a national emergency to bypass Congress and build a US-Mexico border wall.
Mr Trump insisted he would not sign any bill without wall funding, which Democrats adamantly oppose.
Around 800,000 federal workers have been without pay since 22 December.
The Republican president initially gave a positive account of Friday’s meeting at the White House, describing it as “very productive”.
But then he acknowledged in response to a journalist’s question that he had threatened to keep federal agencies closed for years if necessary.
“I did say that, absolutely I said that,” said Mr Trump in the executive mansion’s Rose Garden. “I don’t think it will but I am prepared.”
“I’m very proud of doing what I’m doing,” the president added. “I don’t call it a shutdown, I call it doing what you have to do for the benefit and safety of our country.”
When asked whether he had considered using emergency presidential powers to bypass congressional approval of funding, Mr Trump said he had.
“I may do it. We can call a national emergency and build it very quickly. That’s another way of doing it.”
House Speaker Nancy Pelosi said Friday’s meeting had been “contentious”.
Senate Democratic leader Chuck Schumer told reporters: “We told the president we needed the government open. He resisted.
“In fact he said he’d keep the government closed for a very long period of time. Months or even years.”
The White House and top Democrats also held a meeting earlier this week over the shutdown.
Democrats, who now hold the majority in the House, passed spending bills on Thursday to reopen the government, including $1.3bn (£1bn) of border security funds until 8 February.
But the legislation cannot take effect unless it passes the Republican-controlled Senate, where leader Mitch McConnell said his party would not back any measure without the president’s support.
The Kentucky senator called the Democratic budget “a time-wasting act of political posturing”.
In Friday’s news conference, Mr Trump also told reporters he might consider asking his cabinet to decline a $10,000 raise that is due to take effect because a pay freeze has expired as an inadvertent result of the shutdown.
The fiscal fiasco began when Congress and Mr Trump failed to reach an agreement over a budget bill in December.
The Republicans had passed an initial funding bill including $5bn (£4bn) for the wall, when they still had a majority in the House, but they could not get the necessary 60 votes in the 100-seat Senate.
Two vulnerable Republican senators up for re-election in 2020 – Cory Gardner of Colorado and Susan Collins of Maine – have broken ranks to back approving the budget and ending the shutdown.
The White House is again floating the idea of a deal for ‘Dreamers’ – immigrants who illegally entered the US as children.
Democrats want to ensure that these individuals are shielded from deportation, but have insisted that they will not support a deal over wall funding.
Vice-President Mike Pence told Fox News the deal was being “talked about”, but that Mr Trump said no deal was possible “without a wall”.
Can Trump declare a national emergency?
Anthony Zurcher, BBC News, Washington
Donald Trump says he can declare a “national emergency” and build his promised wall along the border without congressional approval. If that’s the case, the question becomes why he doesn’t go ahead and do that. Why put federal workers through the pain of forgoing pay and hamstring key government agencies, including the Department of Homeland Security, if he could bypass Democratic objections with the snap of his presidential fingers?
The answer is because the solution isn’t that simple. There are provisions of US law that allow the president to direct military construction projects during war or national emergency, but that money would have to come from Defence Department funds allocated by Congress for other purposes. Such a move may prompt Congress, including Republicans, to push back.
Then there’s the inevitable legal challenge from Democrats to such an exercise of presidential authority. Any presidential order to build a wall would be met by an equally imposing wall of court filings blocking its construction.
The president’s latest suggestions are best viewed as simply another attempt to gain the upper hand in negotiations with Democrats. Mr Trump says it’s not a threat – and he’s probably right. It’s a bluff.
What does the partial shutdown mean?
- About 25% of the US federal government has no funding
- Nine departments have been affected, including Homeland Security, Justice, Housing, Agriculture, Commerce, Interior, and the Treasury
- Native American tribes who receive substantial federal funding are struggling
- National Parks have become hazardous without staff