U.S. stocks recovered Thursday after inflation data showed that consumer prices climbed more quickly than expected.