MCALLEN, TEXAS—Taking the shutdown fight to the Mexican border, U.S. President Donald Trump edged closer Thursday to declaring a national emergency in an extraordinary end run around Congress to fund his long-promised border wall. Pressure was mounting to find an escape hatch from the three-week impasse that has closed parts of the government, cutting scattered services and leaving hundreds of thousands of workers without pay.

Trump, visiting McAllen, Texas, and the Rio Grande to highlight what he says is a crisis of drugs and crime, said that "if for any reason we don't get this going" — an agreement with House Democrats who have refused to approve the $5.7 billion (U.S.) he demands for the wall — "I will declare a national emergency."

Some 800,000 workers, more than half of them still on the job, were to miss their first paycheque on Friday under the stoppage, and Washington was close to setting a dubious record for the longest government shutdown in the nation's history. Those markers — along with growing effects to national parks, food inspections and the economy overall — left some Republicans on Capitol Hill increasingly uncomfortable with Trump's demands.

Asked about the plight of those going without pay, the president shifted the focus, saying he felt badly "for people that have family members that have been killed" by criminals who came over the border.

Trump was consulting with White House attorneys and allies about using presidential emergency powers to take unilateral action to construct the wall over the objections of Congress. He claimed his lawyers told him the action would withstand legal scrutiny "100 per cent."

Such a move to bypass Congress' constitutional control of the nation's purse strings would spark certain legal challenges and bipartisan cries of executive overreach.

Read more:

Trump walks out of shutdown talks with Democrats

Congress summons Mnuchin to explain Russian sanctions removal

Iran says it holds US Navy veteran, first arrest of Trump era

A congressional official said the White House has directed the Army Corps of Engineers to look for billions of dollars earmarked last year for disaster response for Puerto Rico and other areas that could be diverted to a border wall as part of the emergency declaration. The official spoke on the condition of anonymity because the official was not authorized to speak publicly.

"We're either going to have a win, make a compromise — because I think a compromise is a win for everybody — or I will declare a national emergency," Trump said before departing the White House for his politically flavoured visit to the border. He wore his campaign-slogan "Make America Great Again" cap throughout.

It was not clear what a compromise might entail, and there were no indications that one was in the offing. Trump says he won't reopen the government without money for the wall. Democrats say they favour measures to bolster border security but oppose the long, impregnable barrier that Trump envisions.

Vice-President Mike Pence shuttled through meetings on Capitol Hill, but there were no signs of any breakthroughs. Pence panned, for now, a last-ditch effort led by GOP Sen. Lindsey Graham of South Carolina to strike a bipartisan immigration compromise. It would have linked wall funding to deportation protections for some immigrants, including young people here illegally known as Dreamers. But Pence, in a briefing with reporters, said the president prefers to wait for the courts to decide that issue.

Graham sounded deflated after talks among senators essentially collapsed, and said, "It is time for President Trump to use emergency powers" to fund wall construction.

Pence said the president has "made no decision" about declaring a national emergency, but added, "The president's going to get this done one way or the other."

Visiting a border patrol station in McAllen, Trump viewed tables piled with weapons and narcotics. Like nearly all drugs trafficked across the border, they were intercepted by agents at official ports of entry, he was told, and not in the remote areas where he wants to extend tall barriers.

Still, he declared: "A wall works. ... Nothing like a wall."

He argued that the U.S. can't solve the problem without a "very substantial barrier" along the border, but offered exaggerations about the effectiveness of border walls and current apprehensions of those crossing illegally.

Sitting among border patrol officers, state and local officials and military representatives, Trump insisted he was "winning" the shutdown fight and criticized Democrats for asserting he was manufacturing a sense of crisis in order to declare an emergency. "What is manufactured is the use of the word 'manufactured,'" Trump said.

As he arrived in Texas, several hundred protesters near the airport in McAllen chanted and waved signs opposing a wall. Across the street, a smaller group chanted back: "Build that wall!"

Loading... Loading... Loading... Loading... Loading... Loading...

In Washington, federal workers denounced Trump at a rally with congressional Democrats, demanding he reopen the government so they can get back to work.

On Capitol Hill, House Speaker Nancy Pelosi accused the president of engaging in political games to fire up his most loyal supporters, suggesting that a heated meeting Wednesday with legislators at the White House had been "a setup" so that Trump could walk out of it.

In an ominous sign for those seeking a swift end to the showdown, Trump announced he was cancelling his trip to Davos, Switzerland, scheduled for later this month, citing Democrats' "intransigence" on border security. He was to leave Jan. 21 to attend the World Economic Forum.

The partial shutdown would set a record early Saturday, stretching beyond the 21-day closure that ended on Jan 6, 1996, during President Bill Clinton's administration.

Associated Press writers Jill Colvin, Colleen Long, Alan Fram, Deb Riechmann and Zeke Miller in Washington and Nomaan Merchant in McAllen, Texas, contributed to this report.

Read more about: