The facilities are part of Walmart’s broader effort to modernize its supply chain and expand capacity to keep up with customers’ online orders.