Senate Majority Leader Mitch McConnell (R-KY) and Minority Leader Chuck Schumer (D-NY) announced a bipartisan deal to fund the government on Wednesday, a major breakthrough that could force the House to swallow the agreement to avoid a possible shutdown.

The deal would set federal spending for the next two years, boosting both defense and non-defense spending by a combined $300 billion and raising the debt limit for months. It also provides funding to battle the opioid addiction crisis and for natural disaster recovery, and extends funding for the Children’s Health Insurance Program (CHIP) for another four years.

House leaders in both parties may not be thrilled they’ve been jammed again — and immigrant advocate groups have expressed fury that a deal to protect young immigrants brought here as children wasn’t included. But with one day before the government once again runs out of funding, it appears the Senate is likely to get a lot of what it wants.

The deal would end months of brinksmanship and uncertainty where Congress passed five short-term deals as lawmakers looked for a breakthrough agreement.

“This bill represents a significant bipartisan step forward,” McConnell said before praising Schumer in a rare show of bipartisan warmth.

Schumer returned the compliment.

“It should break the long cycle of spending crises,” he said. “At the end of the day I believe we’ve reached a budget deal that neither side loves but both sides can be proud of.”

But those warm-and-fuzzies don’t extend across the Hill, with House lawmakers in both parties viewing the deal warily.

As Schumer and McConnell unveiled the deal, House Minority Leader Nancy Pelosi (D-CA) entered the third hour of a House floor speech demanding action on immigration reform to protect recipients of the Deferred Action for Childhood Arrivals program from facing possible deportation. McConnell has agreed to an open debate on immigration, but it’s far from clear what deal the Senate might reach — and whether that would be palatable to President Trump and House Republicans.

While many on the left flank of the Democratic caucus are likely to vote against the deal because of its lack of a DACA fix, the main reason Senate Democrats forced a government shutdown late last month, many hardline House conservatives aren’t happy with how much the deal spends, or about the longer-term debt ceiling increase.

The Senate is usually pretty good at forcing the House to grimace and swallow its deals. But it’s not a slam-dunk that this can and will pass the House without more changes, and there may be more twists and turns before a government shutdown is averted.