Legislation introduced in several states would ban surcharges on Visa and MasterCard credit card purchases, potentially undercutting a concession retailers won in a proposed legal settlement.