The 2018 government shutdown could prove to be short-lived.

Senators have passed a continuing resolution that funds the government through Feb. 8. The measure also includes a six-year extension of the Children's Health Insurance Program.

The Senate measure now goes to the House, where it needs only a simple majority. From there, it will go to the president's desk for his signature. Once done, the government could reopen as soon as today.

Alabama Senators, Republican Richard Shelby and Democrat Doug Jones, voted in favor of the motion. Jones was one of only five Democrats to support the earlier versions of the funding plan.

Jones, who took office in December 2017, praised the bipartisan work that went into the deal.

"With more moderates in the Senate today than in recent memory, it's no surprise that together we were able to rise above partisan politics and find consensus," Jones said. "I am hopeful that the relationships and trust we have built together in recent days will translate to more progress in the future."

He said the deal is far from perfect, however.

"Make no mistake: there's still plenty of work to be done. This bill is not a perfect solution. It fails to provide a lifeline for health care access in rural communities, does not fully address the opioid epidemic or the looming crisis with pensions, does not protect DREAMers, and does not fully fund our military."

The vote comes after an impasse over immigration shut down many government offices and services as of midnight Saturday. The late-night Friday shutdown resulted in the furlough of hundreds of thousands of federal employees and the closure or partial closure of parks, agencies and other government operations.

If the shutdown had continued, essential federal employees and uniformed military personnel would have remained on the job but would not have been paid until the shutdown ended.

Senate Majority Leader Mitch McConnell, in a move towards Minority Leader Chuck Schumer, said the Upper Chamber would discuss legislation to protect some 800,000 young immigrants from deportation before the February deadline. Democrats had blocked funding votes over the Trump administration plan to deport Dreamers, young immigrants brought illegally to the U.S. as children through the Deferred Action for Childhood Arrivals program.

Schumer called on McConnell to abide by the agreement reached by a bipartisan committee working to hammer out a DACA/budget deal.

"While this procedure will not satisfy everyone on both sides, it is a way forward. It is a good solution," Schumer said.