Many S&P 500 food and consumer-goods companies are still raising prices, making it harder for the Federal Reserve to tame high inflation.