S&P 500 and Nasdaq Extend Record Rally on Earnings Strength