The S&P 500 has closed higher, springing back from early losses as investors concerned about AI stocks shifted into Eli Lilly, UnitedHealth ‌and other healthcare and consumer stocks.