WASHINGTON -- House Democrats have ignored a veto threat and passed legislation that would stymie U.S. President Donald Trump's bid for billions of extra dollars for a U.S.-Mexico border wall. The move has escalated a clash over whether he has abused his powers to advance the signature pledge of his 2016 campaign.

The House's 245-182 vote Tuesday to block Trump's national emergency declaration fell well below the two-thirds majority that would be needed to override what would be the first veto of Trump's presidency. Thirteen Republican backed the Democrats' measure as top Republicans worked to keep defections as low as possible, wanting to avoid a tally suggesting that Trump's hold on lawmakers was weakening.

The issue is now before the Republican-run Senate, where there already were enough GOP defections to edge the resolution to the brink of passage. Vice-President Mike Pence used a lunch with Republican senators at the Capitol to try keeping them aboard, citing a crisis at the border, but there were no signs he had succeeded.

"I personally couldn't handicap the outcome at this point," said Senate Majority Leader Mitch McConnell, R-Ky., who plans a vote within the next three weeks. He even said Republicans remained uncertain about the legality of Trump's move.

The showdown was forcing Republicans to cast uncomfortable votes pitting their support for a president popular with GOP voters against fears that his use of emergency powers would invite future Democratic presidents to do likewise.

House Republicans who joined all voting Democrats to support the resolution included moderates from competitive districts such as Fred Upton of Michigan and libertarian-leaning conservatives like Thomas Massie from Kentucky.

The White House, in a letter to lawmakers threatening a veto, said blocking the declaration would "undermine the administration's ability to respond effectively to the ongoing crisis" at the border.

Republicans said Democrats were driven by politics and a desire to oppose Trump at every turn. They said Trump had authority to declare an emergency to protect the country and they defended his claims of a crisis.

"We are at war on the southern border with the drug cartels," said Rep. Pete Olson, R-Texas.

Trump has asserted that barriers would stop drugs from Mexico from entering the U.S. In fact, government figures show that 90 per cent of drugs intercepted from Mexico are caught at ports of entry, not remote areas where barriers would be constructed.

Democrats said Republicans repeatedly accused former President Barack Obama of flouting the Constitution, which gives Congress control over spending, but are ignoring Trump's effort to do the same.

"Is your oath of office to Donald Trump, or is your oath of office to the Constitution?" House Speaker Nancy Pelosi, D-Calif., asked Republicans.

Trump's push for the wall reflected a continuation of the anti-immigrant views that helped fuel his election, some Democrats said.

"Since when do we call human beings in need a national emergency?" said Mexican-born Rep. Jesus "Chuy" Garcia, D-Ill. "Is he running out of insults for people like me?"

Democrats said the crisis is a fiction manufactured by Trump to evade Congress' vote this month to provide less than $1.4 billion for barrier construction. That was well below the $5.7 billion Trump demanded as he forced a record-setting 35-day federal shutdown.

"The president does not get to override Congress in a raucous temper tantrum over his inability to broker a deal" with lawmakers for more money, said Rep. Hank Johnson, D-Ga. Rep. Joaquin Castro, D-Texas, sponsor of the one-sentence measure blocking the declaration, called Trump's move "constitutional vandalism."

Trump used a 1976 law to declare a national emergency and ordered the shift of $3.6 billion from military construction projects to wall building. Citing other powers, he intends to shift an additional $3.1 billion from Defence Department anti-drug efforts and a fund that collects seized assets.

The money would be used to build steel barriers up to 30 feet tall and other barriers and for "law enforcement efforts," said a White House statement.

In the Senate, three Republicans have said they will back Democrats' drive to block the emergency declaration: Maine's Susan Collins, Alaska's Lisa Murkowski and North Carolina's Thom Tillis. One more GOP defection would provide enough votes to approve the Democratic measure, assuming all Democrats and their independent allies back it.

Republicans said senators asked Pence numerous questions about which projects Trump would divert to pay for the wall, with Sen. Richard Shelby, R-Ala., saying the discussion was "hearty." Shelby, chairman of the Senate Appropriations Committee, which controls spending. said the committee would quickly "backfill" money for military construction with other funds he did not identify.

"That issue won't stay alive long," Shelby told reporters.

Sen. John Thune of South Dakota, the chief GOP vote counter, said there may be GOP attempts to amend the House measure, saying Republicans "think they have amendments that would improve it."

That suggests that McConnell may try finding a way to add language that could sink the Democratic resolution or, perhaps, make it more palatable for Republicans. The law requires the Senate to vote on a measure within 18 days of receiving it from the House.

Though presidents have declared 58 emergencies under the law, this is the first aimed at acquiring money for an item Congress has explicitly refused to finance, according to Elizabeth Goitein, co-director for national security at New York University Law School's Brennan Center for Justice. This is also the first time Congress has cast votes on whether to annul an emergency declaration, she said.

Several lawsuits have been filed aimed at blocking the money, including by Democratic state attorneys general, and progressive and environmental groups. Those suits at the very least are likely to delay access to those funds for months or years.

------

AP Congressional Correspondent Lisa Mascaro and Associated Press writer Colleen Long contributed