U.S. equities rallied into the close to finish near the highs of the day, as investors appeared to shake off the persistent rise in interest rates.