President Trump will sign legislation Wednesday afternoon repealing the Consumer Financial Protection Bureau’s mandatory arbitration rule that encouraged class-action lawsuits against banks and credit-card companies. Mr. Trump is signing the measure despite a personal appeal from CFPB Director Richard Cordray and opposition from some veterans’ groups. In a letter to the president this week, Mr. Cordray…