Stocks rise to recover much of steep loss from day before