US stocks shrug off AI pullback as S&P 500 gains 0.7%