The S&P 500 notched its best first-quarter performance since 2019, as Club holding Nvidia helped power the index to a series of record highs.