Stocks ended Thursday little changed despite spending most of the day in the red after data showed inflation ticked up i