U.S. equities came well off the lows of the day to finish higher, as investors shook off the Fed's decision to raise rates for a seventh time.