It was part of the Obama administration's banking reforms, if I remember correctly. It outlawed credit-card issuers' prohibition on giving cash discounts.
It also included a number of other valuable consumer protections, such as forcing card issuers to provide clear advance notice of interest-rate increases.
The financial-system reforms were some of the Obama administration's most valuable.