Stocks scored their first back-to-back gains Wednesday since a brutal sell-off began five weeks ago, though 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.

On Wednesday:

The S&P 500 index rose 28.23 points, or 1.2%, to 2,475.56.

The Dow Jones Industrial Average rose 495.64 points, or 2.4%, to 21,200.55.

The Nasdaq fell 33.56 points, or 0.5%, to 7,384.30.

The Russell 2000 index of smaller company stocks rose 13.79 points, or 1.3%, to 1,10.34.

For the week:

The S&P 500 is up 170.64 points, or 7.4%.

The Dow is up 2,026.57 points, or 10.6%.

The Nasdaq is up 504.78 points, or 7.3%

The Russell 2000 is up 96.46 points, or 9.5%.

For the year:

The S&P 500 is down 755.22 points, or 23.4%.

The Dow is down 7,337.89 points, or 25.7%.

The Nasdaq is down 1,558.31 points, or 17.7%

The Russell 2000 is down 558.12 points, or 33.5%.