WASHINGTON (AP) — House Speaker Mike Johnson called for lawmakers to return to Washington immediately after a group of Senate Democrats voted late Sunday to advance legislation that may put an end to the ongoing government shutdown. This came after a 40-day impasse where multiple essential services and federal workers faced significant disruptions.

Senate negotiations culminated in a 60-40 vote, signaling a potential resolution to the crisis. Johnson described the moment as bringing the “nightmare to an end,” though it remains unclear when the final votes will occur in the Senate.

After extensive discussions, some moderate Senate Democrats opted to push forward with a funding proposal without securing health care subsidies, drawing ire from those within their party who have been pressing for a more comprehensive agreement addressing the Affordable Care Act tax credits scheduled to expire on January 1.

Senate Majority Leader John Thune, representing the Republicans, indicated that a vote on health care subsidies would take place in mid-December, although success is not assured.

Amid the back-and-forth, Senate Democratic leader Chuck Schumer voted against moving forward with the current package, reflecting a broader discontent among Democrats, most of whom did not support the bill.

While five Democrats eventually agreed to the negotiated plan, many leaders, including Schumer, emphasized that the decision would have ramifications and denounced it as a “horrific mistake.” Critics within the party argued that ceding to Republican demands was a betrayal of voters who prioritized health care reforms in recent elections.

Besides addressing government funding, the compromise reportedly includes provisions to ensure back pay for federal workers affected by layoffs and to reverse mass firings from the onset of the shutdown.

As legislators work to finalize the details, the potential for further obstruction looms, putting the resolution of the shutdown in question. Compounding the urgency, the shutdown has begun disrupting various sectors, including air travel, charity food programs, and more as the Thanksgiving holidays approach.

The situation remains fluid as both parties navigate the complexities of the forthcoming health care debate.