A top House lawmaker announced Tuesday that Congress will pass a governmentwide temporary spending bill to keep the government running through Dec. 20, forestalling a government shutdown as the House turns its focus to impeachment hearings.

Appropriations Committee Chairwoman Nita Lowey, D-N.Y., made the announcement after meeting with Senate counterpart Richard Shelby, R-Ala., in hopes of kick-starting long-delayed efforts to find agreement on $1.4 trillion worth of agency spending bills.

A fight over President Donald Trump’s demands for up to $8 billion in new funding for his U.S.-Mexico border fence project is largely responsible for an impasse on the huge spending package, which would implement the details of this summer’s hard-won budget accord.

The politically explosive impeachment hearing and the possibility of impeachment and a trial aren’t making the jobs of dealmakers like Lowey any easier. It’s yet another layer of complications for senior lawmakers pressing not just for an agreement on agency budgets; it’s also complicating action on a long-sought rewrite of the North American trade rules.

The coming weeks could still be the last, best opportunity for lawmakers to wrap up their work on the budget and the trade deal, even as stakeholders admit the timetable could easily slip amid foot-dragging and partisan flare-ups.

As the House returns from a quick break, the sole piece of must-do business before Thanksgiving is to pass a governmentwide stopgap spending bill to avert the second government shutdown within a year.

The top leaders of the House and Senate Appropriations committees met Tuesday afternoon to try to make progress toward a year-end deal on a massive appropriations package. Greeting reporters after a meeting with Shelby, Lowey sought to dispel worries of a shutdown when current funding expires next Thursday.

Shelby and Lowey promised a renewed push toward completing their unfinished work in coming weeks but offered no specifics.

“We had a very productive conversation,” Lowey said. “It’s our responsibility as the chairs of the committees to get our work done and we intend to get our work done.”

Most notably, a recurring fight over Trump’s U.S.-Mexico border fence and immigrant detention practices is making it difficult for House Speaker Nancy Pelosi, D-Calif., and Senate Majority Leader Mitch McConnell, R-Ky., to make progress on a broader, full-year $1.4 trillion spending bill. That measure is needed to implement the terms of last summer’s hard-won budget agreement, which distributed budget increases to both the Pentagon and domestic agencies.

McConnell is personally invested in a successful budget outcome and both he and Pelosi have long histories on appropriations.

The other top issue is a legislative update to the landmark North American Free Trade Agreement, which is especially sought by Trump’s GOP allies and the party’s Main Street supporters.

Pelosi is the key figure on trade, which is always a tricky issue for Democrats, even if the politics of the new United States-Mexico-Canada Agreement are nowhere nearly as divisive as NAFTA was 26 years ago.

Passage of NAFTA in 1993 badly split House Democrats, but Pelosi, who represents the Port of San Francisco, voted “aye,” as did Majority Leader Steny Hoyer, D-Md., and powerful Ways and Means Committee Chairman Richard Neal, D-Mass.

Neal is leading a working group on the measure and says the group is “on the 5-yard line” and the optimistic take is that he and Pelosi will bring USMCA in for an easy landing.

The trade updates are generally seen as an improvement over NAFTA, whose provisions enforcing Mexican labor and environmental rules are considered inadequate by many Democrats. The selling points for the new pact are that it updates NAFTA for the 21st century with hard-won provisions on digital trade, intellectual property, financial services and agriculture trade.

Still, any impeachment-related delays could tax patience and thrust politically freighted issues like the border wall and the updated U.S. trade pact directly into the heat of the presidential primary campaign.

Trump could easily spin a successful wall narrative without much more in new appropriations. Simply funding the government on autopilot — though hardly anyone is advocating that — would give him perhaps $6 billion more this year.

A battle over Trump’s powers to transfer military funding to wall building also has stalled an annual military policy bill that has become law for 58 years in a row.

Capitol Hill veterans say hardliners on both sides — including House progressives and White House budget chief Russell Vought — are an impediment to the kind of split-the-differences agreement that the current balance of power can produce.

And there is still time for action if the momentum stalls, even if the odds get more dicey in a presidential election year.

One of the benefits of limiting the duration of the upcoming stopgap spending bill, known as a continuing resolution or CR, is that it means another is needed before Congress adjourns for the year.

Any December stopgap measure could also provide a way to ship some unfinished business on taxes, health care and pensions to Trump’s desk as part of a must-pass package. Top lawmakers hope that a full-year spending bill would serve the same purpose but acknowledge there are considerable obstacles.

“I think it would be a terrible mistake if we were still in a continuing resolution after the first of the year for a whole host of reasons,” said top Senate Appropriations Committee Democrat Patrick Leahy of Vermont, citing shifting signals from the White House as contributing to the delays. “It has been difficult with the White House because … they have not always been consistent in what they want.”

© The Associated Press. All rights reserved.