Legal challenges have succeeded in overturning bans on passing along the fees for credit card payments.