NEW YORK (AP) -- Stocks scored their first back-to-back gains Wednesday since a brutal sell-off began five weeks ago, but much of an early rally faded late in the day as a last-minute dispute threatened to hold up a $2 trillion economic rescue package in Congress.
The S&P 500 rose 1.2%, bringing its two-day gain to 10.6%. It had been up 5.1% earlier in the day as Congress moved closer to approving the plan to provide badly needed aid to an economy that has been ravaged by the coronavirus. The market is now down nearly 27% since setting a record high a month ago.
Many on Wall Street say they don't think stocks have hit bottom yet, but optimism rose after the White House and Senate leaders announced an agreement on the aid bill early Wednesday. A vote had been expected in the Senate by the end of the day, but then some lawmakers balked at the proposed bill.
Senators Tim Scott, Ben Sasse and Lindsey Graham said that they found a "drafting error" in the legislation that could give employers incentives to lay off employees. Afterward, Sen. Bernie Sanders said he would put a hold on the bill unless the three Republican senators dropped their objections to it.
Investors were anxiously waiting for the aid in the rescue package, which lawmakers hope will help blunt the blow to the economy as businesses shut down to slow the spread of the coronavirus.
"They're hitting on all the right elements of what the U.S. economy needs during the shutdown to bridge itself to the other side to open up economic activity," said Darrell Cronk, chief investment officer of Wells Fargo Wealth and Investment Management.
But even optimists say the package provides just the second leg of three that markets need to regain lasting confidence. The Federal Reserve and central banks are also offering tremendous aid by cutting interest rates and supporting lending markets, but investors say they need to see the number of new infections peak before they can feel comfortable knowing how deep the looming economic downturn will be.
"There's a lot of bad news, there's very little tangible good news and there's a lot of uncertainty in between," said Jack Ablin, chief investment officer at Cresset.
Investors are also still waiting to see the details of Washington's plan, which will include direct payments to most Americans and aid for hard-hit industries. It's unclear when the House of Representatives could vote on the plan.
"It's too early to call a bottom because there's way too much uncertainty," said Tony Rodriguez, head of fixed income strategy at Nuveen.
"The bottom implies it's not going lower, and I don't think that," he said. "For it to become a bottom, you would need to see much better news coming out on the health care side of this."
The number of known infections has leaped past 450,000 people worldwide, and more than 20,000 have died, according to Johns Hopkins University. Overall, more than 112,000 have recovered.
For most people, the new coronavirus causes mild or moderate symptoms, such as fever and cough that clear up in two to three weeks. For some, especially older adults and people with existing health problems, it can cause more severe illness, including pneumonia and death.
With widening swaths of the economy shutting down and layoffs mounting, economists are sure a steep drop-off is coming. They're forecasting a report on Thursday will show a record number of Americans filed for unemployment benefits as layoffs sweep the country. What's unsure is how long it will last.
That uncertainty has led to wild swings in the stock market over the last month. The S&P 500 surged 9.4% Tuesday as expectations built that Washington was nearing a stimulus deal. That was a better performance than the index has turned in for 10 of the last 20 full years.
But the market has also had a couple days within the last few weeks that packed entire years' worth of losses, including two days down 10.4%. The last time the S&P 500 had a back-to-back gain was Feb. 12, a week before the index set its record high.
The uncertainty has carried over even to trading within a certain day or a certain hour.
On Wednesday, for example, the S&P 500 was down as much as 1.6% Wednesday morning before it turned decisively higher.
Boeing soared 24.3% in part on expectations that it stands to gain from the aid package brokered on Capitol Hill. Other travel-related stocks also stormed higher to recoup a fraction of their huge losses over the last month. Royal Caribbean Cruises jumped 23%, but it's still down by 68.2% for the year.
Nike climbed nearly 9.2% after it said stronger online sales in China during the coronavirus outbreak helped it offset plunges in revenue caused by the shutdown of stores across the country. The company said it will follow a similar playbook in other countries as the outbreak has spread around the world. It also said sales are bouncing back in China, where the outbreak has eased and most Nike stores have reopened.
European markets ended with sizable gains. France's CAC 40 rose 4.5% and Germany's DAX rose 1.8%. Asian markets rose broadly, led by an 8% jump in Japan.
Treasury yields were mixed. The yield on the 10-year Treasury rose to 0.84% from 0.81% late Tuesday.