The Senate is racing to avoid the third government shutdown of the year ahead of a looming end-of-the-month deadline.

Senators on Tuesday voted 93-7 to pass a sweeping $854 billion spending bill that includes funding for the departments of Defense, Health and Human Services (HHS), Labor and Education, which make up the lion’s share of total government spending.

Six Republican senators — Jeff Flake Jeffrey (Jeff) Lane FlakeHow fast population growth made Arizona a swing state Jeff Flake: Republicans 'should hold the same position' on SCOTUS vacancy as 2016 Republican former Michigan governor says he's voting for Biden MORE (Ariz.), Mike Lee Michael (Mike) Shumway LeeMcConnell shores up GOP support for coronavirus package McConnell tries to unify GOP Davis: The Hall of Shame for GOP senators who remain silent on Donald Trump MORE (Utah), Rand Paul Randal (Rand) Howard PaulRand Paul says he can't judge 'guilt or innocence' in Breonna Taylor case Overnight Health Care: Health officials tell public to trust in science | Despair at CDC under Trump influence | A new vaccine phase 3 trial starts Health officials tell public to trust in science MORE (Ky.), David Perdue (Ga.), Ben Sasse Benjamin (Ben) Eric SasseTrump says he'll sign order aimed at protecting premature babies in appeal to religious voters Government watchdog recommends creation of White House cyber director position Chamber of Commerce endorses McSally for reelection MORE (Neb.) and Pat Toomey Patrick (Pat) Joseph ToomeyAppeals court rules NSA's bulk phone data collection illegal Dunford withdraws from consideration to chair coronavirus oversight panel GOP senators push for quick, partial reopening of economy MORE (Pa.) — joined Sen. Bernie Sanders Bernie SandersOutrage erupts over Breonna Taylor grand jury ruling Dimon: Wealth tax 'almost impossible to do' Grand jury charges no officers in Breonna Taylor death MORE (I-Vt.) in voting against the legislation, which also includes a short-term stopgap bill to fund the rest of the government through Dec. 7 and prevent a shutdown that would start Oct. 1.

ADVERTISEMENT

Passage of the package of defense and domestic spending marks a significant victory for Senate Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellFEC flags McConnell campaign over suspected accounting errors Poll: 59 percent think president elected in November should name next Supreme Court justice Mark Kelly: Arizona Senate race winner should be sworn in 'promptly' MORE (R-Ky.), who has dedicated weeks of floor time to government funding and avoiding another catch-all omnibus bill less than two months before the midterm elections, where control of Congress hangs in the balance.

It’s the first time the Senate has approved funding for Labor, HHS or Education outside an omnibus bill since 2007, though even then the package was not completed on time. The bills normally get bogged down by fights over partisan riders, but Senate negotiators agreed early on to avoid attaching them to their legislation and were able to keep them out of the final House-Senate version of the package.

“These milestones may sound like inside baseball, but what they signify is a Senate that is getting its appropriations process back on track, a Senate that is attending to vital priorities for our country,” McConnell said.

Despite containing only two appropriations bills, the package represents roughly two-thirds of Congress’s 2019 spending. Of the $854 billion, $785 billion fell under agreed-upon budget caps, and the rest came from off-budget funds such as Overseas Contingency Operations.

It includes provisions for military pay raises, defense research, increases for Pell Grants and the National Institutes of Health, and workforce development training, among others.

The House is out this week but expected to take up the funding legislation next week, ahead of the Sept. 30 deadline to keep the government funded.

Congress already sent an initial spending bill to President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE’s desk that funded military construction and veterans’ affairs, the legislative branch, and energy and water. If Trump signs both bills before the end of the month, that would allow lawmakers to get five out of the 12 individual appropriations bills to his desk before the end of the 2018 fiscal year.

The two chambers are working on a third package of four bills they hope to send to the president as well, but differences remain between the House and Senate. Those bills include agriculture, interior, financial services and transportation funding measures.

A continuing resolution (CR) in the bill extends funding for all other agencies through Dec. 7, after the midterm elections.

The inclusion of the resolution in the Department of Homeland Security bill puts off a contentious debate on Trump’s proposed border wall.

ADVERTISEMENT

While Trump could still choose to veto the spending bills, congressional leaders have expressed confidence that the inclusion of the defense bill with the CR will make it difficult for him to do so.

And Trump told Fox News earlier this month that he “most likely” would not shut down the government, a move that would spark a risky fight for Republicans less than two months before the midterms.

“I guess when you get right down to it, it is up to me,” Trump said during an interview with Fox News about shutting down the government, “but I don't want to do anything to hurt us or potentially hurt us.”

Instead, senators are bracing for a December fight over funding for the border wall, with both chambers far apart on how much to include. The House version of the bill included $5 billion of funding, while the Senate version included $1.6 billion and limited construction to fencing along a 65-mile stretch of the Rio Grande Valley.

Trump had made getting funding for his border wall a top priority, including threatening to veto a March spending bill that he and his conservative allies felt didn’t include sufficient funding for the wall.