Stocks could come under a little pressure but are on course for solid annual gains as the year’s end approaches.