The S&P 500 notched its 28th record of the year as Nvidia Corp. jumped about 4% after pledging to invest up to $100 billion in OpenAI.