US stocks finish higher after volatile session as S&P 500 breaks out of slump

Trading was volatile as the major indexes swung between gains and losses intraday, following a big sell-off earlier in the week.