S&P 500 stocks — excluding the Magnificent Seven — are on pace to deliver their first profit growth since the fourth quarter of 2022.