Visa and Mastercard will reduce credit card swipe fees for merchants for the next five years—which could save retailers around $30 billion—in a landmark class action settlement announced Tuesday, ending decades-long antitrust litigation against the credit card issuers.