The financial-services industry, led by a group of small banks, successfully targeted a few potentially wavering Senate Republicans to ensure lawmakers overturned a rule that would have made it easier for consumers to join class-action lawsuits against banks.