U.S. equities posted gains, with the S&P 500 advancing 0.4% ahead of this week's key report on consumer prices and the final Federal Reserve policy meeting of 2023.