Walmart Inc. (NYSE:WMT) has agreed to pay a hefty sum of $5.6 million to settle a lawsuit accusing the retail giant of overcharging its customers and selling products with less weight than labeled.