Senate leaders have agreed to the biggest budget deal of Donald Trump Donald John TrumpObama calls on Senate not to fill Ginsburg's vacancy until after election Planned Parenthood: 'The fate of our rights' depends on Ginsburg replacement Progressive group to spend M in ad campaign on Supreme Court vacancy MORE’s presidency, ending a months-long partisan standoff that briefly shuttered the federal government in January.

Both chambers are expected to vote on the package Thursday ahead of a midnight deadline for keeping the government open.

Passage in the Senate is a certainty given support from Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellObama calls on Senate not to fill Ginsburg's vacancy until after election Planned Parenthood: 'The fate of our rights' depends on Ginsburg replacement Progressive group to spend M in ad campaign on Supreme Court vacancy MORE (R-Ky.) and Democratic Leader Charles Schumer Chuck SchumerPelosi orders Capitol flags at half-staff to honor Ginsburg Ginsburg in statement before her death said she wished not to be replaced until next president is sworn in Democrats call for NRA Foundation to be prohibited from receiving donations from federal employees MORE (N.Y.), who have hailed it as a major breakthrough.

ADVERTISEMENT

In the House, the outcome isn’t as certain.

Speaker Paul Ryan Paul Davis RyanKenosha will be a good bellwether in 2020 At indoor rally, Pence says election runs through Wisconsin Juan Williams: Breaking down the debates MORE (R-Wis.) has also praised the deal, but conservative Republicans are rejecting it.

House Democratic Leader Nancy Pelosi Nancy PelosiPelosi: Ginsburg successor must uphold commitment to 'equality, opportunity and justice for all' Bipartisan praise pours in after Ginsburg's death Pelosi orders Capitol flags at half-staff to honor Ginsburg MORE (Calif.) says she’ll vote against the bill because it does not include language to protect from deportation hundreds of thousands of immigrants who came to the country illegally as children. But she isn’t whipping her members to oppose the legislation.

Here’s what’s in the deal:

Spending cap increases

The measure raises the cap on defense discretionary spending by $80 billion in fiscal year 2018 and $85 billion in fiscal year 2019.

It also provides $71 billion in emergency or overseas contingency funding for 2018 and $69 billion for 2019, bringing total defense spending for those two years to $700 billion and $716 billion, respectively.

It raises the cap on nondefense domestic discretionary spending by $63 billion in fiscal year 2018 and $68 billion in fiscal year 2019.

It fully repeals the automatic spending caps known as sequestration for nondefense programs. Counting the repeal of the sequester cut and $57 billion in new spending, it represents a $131 billion increase for nondefense programs.

The big jump in defense spending has earned plaudits from Pentagon chief James Mattis James Norman MattisBiden courts veterans amid fallout from Trump military controversies Trump says he wanted to take out Syria's Assad but Mattis opposed it Gary Cohn: 'I haven't made up my mind' on vote for president in November MORE and defense hawks in both chambers, though some have questioned whether it’s too much money for the military.

“Military spending and defense spending is far above the president’s request,” said Sen. Bob Corker (R-Tenn.), an outspoken budget hawk who said Thursday he’d be voting on the bill. “I’m all for supporting our military, and I want to make sure they’re funded properly. It’s very difficult to have that big an increase in one year and then be able to use it wisely.”

Disaster relief

The bill provides nearly $90 billion in emergency funding for disaster relief in Puerto Rico, Florida and Texas, among other areas.

It includes $23.5 billion for the Federal Emergency Management Agency’s fund for recovery repairs and future mitigation and $28 billion in community development block grants for housing and infrastructure.

It also has $2 billion to help Puerto Rico and the U.S. Virgin Islands rebuild their electric grids and $2.4 billion to help citrus growers in Florida and farmers in other areas recover from hurricanes and wildfires.

It spends $4.9 billion in Medicaid funds for Puerto Rico and the U.S. Virgin Islands, which were hit hard by Hurricane Maria in 2017.

Debt ceiling

The measure suspends the debt ceiling until March 1, 2019, sidestepping a fight with House conservatives who have demanded attaching spending reforms to any expansion of federal borrowing authority.

There’s growing sentiment on both sides of the aisle that the debt limit should be abolished, as it only authorizes the Treasury Department to pay obligations that Congress has already authorized.

Budget hawks, however, are unhappy with the fiscal impact of the deal. The Committee for a Responsible Federal Budget warns it would “set the stage for more than $1.5 trillion of new debt over the next decade.”

Opioid addiction

The agreement allocates $6 billion over two years to fight opioid addiction, a major priority of Sen. Rob Portman Robert (Rob) Jones PortmanRomney undecided on authorizing subpoenas for GOP Obama-era probes Congress needs to prioritize government digital service delivery House passes B bill to boost Postal Service MORE (R-Ohio), who has spearheaded the Senate push to address what he says is a nationwide crisis.

It would fund prevention programs and law enforcement operations.

Infrastructure

The bill provides $20 billion in new infrastructure investment, reflecting demands from Republicans who wanted a portion of the nondefense spending hikes to go to infrastructure.

This reflects a priority for Trump, who has called on Congress to pass a $1.5 trillion infrastructure bill.

The $20 billion falls far short of the amount of federal money needed to leverage an infrastructure overhaul of the magnitude that Trump envisions, but it’s a start.

Veterans

The bill provides funding to reduce the backlog of more than 400,000 claims at Department of Veterans Affairs health centers.

One of Trump’s top priorities during the 2016 campaign was to improve care for military veterans. He signed an executive order expanding health care services for veterans leaving active duty.

The measure would provide $4 billion — $2 billion in 2018 and $2 billion in 2019 — to address the backlog.

Health care

Funding for the Children’s Health Insurance Program (CHIP) would be extended by four years under the bill. The program was previously authorized for six years as part of a funding deal late last month that ended the January shutdown.

Democrats had called for a 10-year reauthorization of CHIP, but Schumer characterized the funding as a victory.

“American families with children who benefit with CHIP will now be able to rest easy for the next decade,” Schumer said Wednesday.

The deal OKs a two-year reauthorization of community health centers with more than $7 billion in total funding, another priority Democrats demanded during the January shutdown.

It closes the Medicare Part D “doughnut hole” for seniors.

And it gives $620 million over two years to the National Health Service Corps and $253 million over the same period to teaching health centers.

The bill also includes structural reforms to Medicare that a senior Democratic aide described as a routine way to offset the cost of the bill.

It would repeal ObamaCare’s Independent Payment Advisory Board, a controversial part of the 2010 Affordable Care Act that never got off the ground as critics warned it would take medical decisions away from doctors.

Budget, appropriations and pension reform

The bill establishes special committees to work on budget and appropriations reform and pensions reform.

Sen. David Perdue (R-Ga.), a leading proponent of budgetary reform, applauded the development Wednesday.

“There may be some new energy behind working on process reform. That could be an encouraging sign,” he said.

Democrats say the creation of a joint select committee to address what they call the multiemployer pension crisis will help millions of pensioners, including miners who are faced with cuts to their benefits.

Helping retired miners is a top priority of Sens. Sherrod Brown Sherrod Campbell BrownBipartisan praise pours in after Ginsburg's death Emboldened Democrats haggle over 2021 agenda Hillicon Valley: Russia 'amplifying' concerns around mail-in voting to undermine election | Facebook and Twitter take steps to limit Trump remarks on voting | Facebook to block political ads ahead of election MORE (D-Ohio) and Joe Manchin Joseph (Joe) ManchinBiden promises Democratic senators help in battleground states Senate leaders quash talk of rank-and-file COVID-19 deal OVERNIGHT ENERGY: House Democrats tee up vote on climate-focused energy bill next week | EPA reappoints controversial leader to air quality advisory committee | Coronavirus creates delay in Pentagon research for alternative to 'forever chemicals' MORE (D-W.Va.) who are running for reelection this year in states that voted for Trump.

Mike Lillis contributed.

This story was updated at 11:59 a.m.