The S&P 500 $^SPX closed slightly higher on Wednesday, ending a subdued trading session marked by alternating gains and losses. Market participants appeared hesitant to make bold moves ahead of upcoming U.S. economic data, following a week that had already delivered surprises, including soft inflation numbers and a temporary tariff truce between the United States and China.