The House overwhelmingly approved an $8.3 billion emergency spending bill Wednesday to combat the coronavirus, sending the legislation to the Senate, which could act as soon as Thursday.

President Trump is expected to sign the legislation, which is more than triple the size of the White House’s budget request from last week. It sends billions to address nearly every aspect of the outbreak, from vaccine research and development, to support for state and local public health agencies, to medical supplies and preparation at home and abroad. The vote in the House was 415-2.

“Congress is acting with the seriousness and sense of urgency the coronavirus threat demands,” House Appropriations Chairwoman Nita M. Lowey (D-N.Y.) said in floor debate ahead of the vote. “While we all ardently hope that this public health emergency does not worsen, House Democrats will not hesitate to act again if we must augment this funding with more resources.”

The political deal helped push financial markets to surge on Wednesday. The Dow Jones industrial average closed up more than 4.5 percent, or nearly 1,200 points and the Nasdaq was also up 3.8 percent, partly on hopes that U.S. leaders are working together to address the spreading outbreak.

“This is the one time the government has moved beyond partisan bickering and is getting ahead of a problem before it grows into a bigger crisis," said Ivan Feinseth of Tigress Financial Partners.

The package includes more than $3 billion for research and development on vaccines, therapeutics and other treatments, as well as $2.2 billion for the Centers for Disease Control and Prevention to support the response from federal, state, and local public health agencies, including for lab testing and infection control.

Other parts of the deal include close to $1 billion for medical supplies, health-care preparedness and community health centers, among other things. Also included is $1 billion in loan subsidies for small businesses, which Democrats said would enable the Small Business Administration to provide $7 billion in low-interest loans for companies affected by the outbreak.

Some 85 percent of the money in the bill would be spent domestically, but there is also $1.25 billion for the State Department to assist in battling the spread of the coronavirus overseas. This would include evacuation expenses and humanitarian aid, among other things.

The final price tag on the bill dwarfed a $2.5 billion spending proposal the White House presented last week, which was divided between $1.25 billion in new funds and $1.25 billion taken from other accounts, such as an Ebola response fund. By contrast, the congressional bill is all new money.

“We have to recognize this is one giant step," House Speaker Nancy Pelosi (D-Calif.) told reporters. "In this bill, we’ll go from the administration putting forth $2.3 [billion] and money taken from Ebola and home heating to over $8 billion clean money.”

Lawmakers of both parties viewed the initial White House spending proposal as inadequate to address the crisis at hand, in terms of both the monetary commitment and the public perception of how Congress and the White House were responding. Subsequently, Trump has said repeatedly that he’s open to signing off on however much money Congress sends him.

“We‘re doing very well in terms of getting the funding we need, the necessary funding. I asked for X, and they want to give us more than X, and that’s okay,” Trump said Tuesday during a visit to the National Institutes of Health.

The bill also includes a provision requiring reimbursement of $136 million the Trump administration had previously said it was transferring from other accounts to address the virus.

Intense negotiations have been underway for days among members of the Appropriations Committees in both chambers to finalize the spending bill. Late-stage talks got hung up over language Democrats sought to include to address vaccine affordability, which some Republicans viewed as inappropriate price controls.

The issue was finally resolved Wednesday with inclusion of a $300 million fund -- less than Democrats initially proposed -- aimed at ensuring the federal government pays fair prices for coronavirus vaccines and drugs, and that they are made available to consumers at affordable prices.

The legislation came together unusually rapidly on Capitol Hill, showing that despite partisan gridlock, lawmakers can act quickly when they feel they must. With the coronavirus outbreak, lawmakers in both parties are confronting growing alarm from their constituents and health-care providers in their districts over the availability of resources. There are now more than 150 coronavirus cases in the United States and 11 deaths -- 10 in Washington State and one in California. The numbers of infections are growing daily and some experts say they could be much larger if more people were being tested.

“This legislation is how this place is supposed to work -- real substance, forget the politics. We have an emergency, we really do,” said Rep. Fred Upton (R-Mich.). “This is a moment in time where we need to step up for the safety of our families, our communities, and our nation."

The two “no” votes came from GOP Reps. Andy Biggs (R-Ariz.) and Ken Buck (R-Colo.), both of whom said the spending levels in the bill were excessive. Rep. Matt Gaetz (R-Fla.) wore a gas mask on the floor of the House as he voted in favor of the bill.

Thomas Heath contributed to this report.