Sales rose this year during the holiday shopping season even as Americans wrestled with elevated prices for many groceries and other necessities, according to new data.