After a rocky start, Wall Street recovered from a two-day decline as traders gobbled up beaten-down shares.