WASHINGTON (AP)  The Senate resoundingly approved a border security compromise Thursday that ignores most of President Donald Trump’s demands for building a wall with Mexico but would prevent a new government shutdown. The White House said Trump, as he’s suggested for weeks, would quickly declare a national emergency and perhaps invoke other executive powers to try to shift money to wall-building from elsewhere in the federal budget.

House passage and Trump’s signature were assured, which for now would stamp a bipartisan coda on a nasty melee that’s dominated the initial months of power sharing in Washington.

The specter of the national-emergency declaration has produced widespread opposition in Congress, but Trump is under pressure to soothe his conservative base and avoid looking like he’s surrendered in his wall battle with Congress.

At the White House, Press Secretary Sarah Sanders said Trump would sign the bill and take “other executive action, including a national emergency.” She added, “The president is once again delivering on his promise to build the wall, protect the border, and secure our great country.”

The top two Democrats in Congress say President Donald Trump’s upcoming move to declare a national emergency to fund his U.S.-Mexico border wall would be “a lawless act” and “a gross abuse of the power of the presidency.”

House Speaker Nancy Pelosi and Senate Minority Leader Chuck Schumer say in a joint statement that “Congress will defend our constitutional authorities.”

Pelosi has the ability to pass legislation to overturn any such move by Trump, and that measure could pass the GOP-held Senate as well, though Trump could veto it. Trump’s move would also face a certain court challenge.

Pelosi and Schumer say, “This is not an emergency, and the president’s fearmongering doesn’t make it one.”