The S&P 500 Index gained in late morning trading on Wednesday, rebounding after a brief retreat, helped by solid earnings from SpaceX and Super Micro Computer Inc., which had bolstered bullish views of the artificial-intelligence trade. Attention turns next to earnings from tech giants Meta Platforms Inc. and Tesla Inc., due after the bell.