Critics hit law firms’ bills after class-action lawsuits