The S&P 500 Index notched a fresh all-time high on Friday.