Walmart Inc. has ended its effort to use roving robots in store aisles to keep track of its inventory, reversing a yearslong push to automate the task with the hulking machines after finding during the coronavirus pandemic that humans can help get similar results.