While most retailers dealt with congested ports and unprecedented shipping prices, Walmart chartered its own ships, increased sales, and used its market gains to sideline competitors. Then it weighed in on shipping reform.