Americans spent more at businesses and online during the month of October than most experts predicted — giving the economy a 1.7% boost, and indicating that higher inflation isn’t deterring some shoppers.