SAN JOSE — Walmart, Inc. agreed to pay a $5.6 million settlement in a lawsuit alleging that the retailer overcharged customers by selling baked goods and produce that weighed less than labeled, ...