Once vilified for squeezing workers and small retailers, Walmart has rewritten its playbook—investing in people, embracing AI ...