WASHINGTON (AP) — The White House and Senate leaders of both parties have struck an agreement on a sweeping $2 trillion measure to aid workers, businesses and a health care system strained by the rapidly spreading coronavirus outbreak.

Top White House aide Eric Ueland announced the agreement in a Capitol hallway shortly after midnight.

The agreement comes after days of often intense haggling and mounting pressure and still needs to be finalized in detailed legislative language.

Although the full text of the bill is not yet known, lawmakers indicated Tuesday that it would include the initial GOP proposal for direct cash payments to Americans.

Under the plan, people making up to $75,000 a year are expected to receive checks for $1,200. Couples making up to $150,000 would receive $2,400, with an additional $500 per child. The new agreement removed the phased-in provision that would have excluded lower-income Americans from receiving the full benefit.

The payments would decrease for those making more than $75,000, with an income cap of $99,000 per individual or $198,000 for couples.

The bill is also expected to include roughly $100 billion in assistance for hospitals; $350 billion in assistance to small businesses; $500 billion in aid for corporations, including airline companies and cruise lines, that have been hurt by the outbreak; and about $150 billion for state and local stimulus funds.

Unemployment insurance would also be significantly bolstered for four months by increasing payments and extending the benefit to those who typically do not qualify, such as gig economy workers, furloughed employees and freelancers. Specifically, the bill would increase the maximum unemployment benefit that a state gives to a person by $600 per week and according to Schumer, “ensures that laid-off workers, on average, will receive their full pay for four months.”

The agreement also would prohibit businesses controlled by Trump, Vice President Mike Pence, members of Congress and heads of executive departments from receiving loans or investments from Treasury programs.

The unprecedented economic rescue package would give direct payments to most Americans, expand unemployment benefits and provide a $367 billion program for small businesses to keep making payroll while workers are forced to stay home.