The Justice Department and Walmart confirmed the settlement without disclosing terms.