The sales mark a reversal of a 2017-18 strategy led by Marc Lore, Walmart’s former head of e-commerce.