WASHINGTON — After months of Washington gridlock, Congress was set to vote on a $900 billion pandemic relief package, finally delivering longsought cash to businesses and individuals as well as resources to vaccinate a nation confronting a frightening surge in COVID-19 cases and deaths.

Lawmakers tacked on thousands of pages of other end-of-session business in a burst of legislation as Capitol Hill is set to close down for the year.

The relief package, agreed to on Sunday and finally released in bill form Monday afternoon, remained on track for votes in Congress on Monday. It would establish a temporary $300 per week supplemental jobless benefit and a $600 direct stimulus payment to most Americans, along with a new round of subsidies for hard-hit businesses and money for schools, health care providers and renters facing eviction.

The 5,593-page legislation — the longest bill in memory and probably ever — came together Sunday after months of battling, posturing and postelection negotiating thatreinedin a number of Democratic demands as the end of the congressional session approached. President-elect Joe Biden was eager for a deal to deliver long-awaited help to suffering people and a boost to the economy, even though The Christmas tree at the U.S. Capitol, where House lawmakers debated the final draft of a coronavirus relief bill ahead of an expected vote on the $900 billion measure Monday night that would send it to the Senate. JOSE LUIS MAGANA/AP it was less than half the size that Democrats wanted in the fall.

Biden praised the bipartisan spirit that produced the measure, which he called “just the beginning.”

Treasury Secretary Steven Mnuchin, a key negotiator, said on CNBC Monday morning that the direct payments would begin arriving in bank accounts next week.

Democrats acknowledged it wasn’t as robust a relief package as they initially sought — or, they say, the country needs. House Speaker Nancy Pelosi vowed more to come once Biden takes office.

“It is a first step,” she said.

“Wehavetodomore.”

The final agreement would be the largest spending measure yet. It combined $900 billion for COVID- 19 relief with a $1.4 trillion governmentwide funding plan and lots of other unrelated measures on taxes, health, infrastructure and education. The governmentwide funding would keep the government open through September.

The final bill bore ample resemblance to a $1 trillion summertime package put together by Senate Republican leaders, which failed to excite many GOP senators.

As talks stalemated, Republicans pulled back to a smaller, $500 billion position that omitted direct payments, supplemental unemployment benefits and food aid, among other priorities.

Negotiations only turned serious in recent weeks as failure was no longer an option and as time was running out.

On direct payments, the bill provides $600 to individuals making up to $75,000 per year and $1,200 to couples making up to $150,000, with payments phased out for higher incomes. An additional $600 payment will be made per dependent child, similar to the last round of relief payments in the spring.

The $300 per week bonus jobless benefit was half the supplemental federal unemployment benefit provided underthe$1.8billionCARES Act in March and would be limited to 11 weeks instead of 16 weeks. The direct $600 stimulus payment was also half the March payment, subject to the same income limits in which an individual’s payment phases out after $75,000.

The CARES Act was credited with keeping the economy from falling off a cliff during widespread lockdowns in the spring, but Republicans controlling the Senate cited debt concerns in pushing against Democratic demands.

Progress came after a bipartisan group of pragmatists and moderates devised a $908 billion plan that built a middle-ground position that the top four leaders of Congress — the GOP and Democratic leaders of both the House and Senate — used as the basis for their talks. The lawmakers urged leaders on both sides to back off of hardline positions.

Republicans were most intent on reviving the Paycheck Protection Program with $284 billion, which would cover a second round of PPP grants to especially hard-hit businesses.

Democrats won set-asides for low-income and minority communities.

The pandemic relief and spending bill also includes billions of dollars to promote clean energy such as wind and solar power while sharply reducing over time the use of potent coolants in air conditioners and refrigerators that are considered a major driver of global warming.

The energy and climate provisions, supported by lawmakers from both parties, were hailed as the most significant climate change law in at least a decade.

“Republicans and Democrats are working together to protect the environment through innovation,” said Sen. John Barrasso, R-Wyo., chairman of the Senate Environment and Public Works Committee.

“This historic agreement includes three separate pieces of legislation that will significantly reduce greenhouse gases,” Barrasso said, citing measures that promote technologies to “capture” and store carbon dioxide produced by power and manufacturing plants; reduce diesel emissions in buses and other vehicles; and authorize a 15-year reduction of hydrofluorocarbons, or HFCs, that are used in everything from cars to air conditioners. HFCs are considered a major driver of global warming and are being targeted worldwide.

The legislation also extends tax credits for solar and wind power, a key part of Biden’s ambitious plan to generate 100 percent “clean electricity” by 2035.