Epstein Becker & Green and Sheppard, Mullin, Richter & Hampton can breathe a little easier these days. On Thursday, a federal judge in Massachusetts threw out a lawsuit against the two firms that alleged they had been improperly paid for representing a credit repair organization in a multimillion-dollar class action.

Epstein Becker and later, Sheppard Mullin, represented Cambridge Credit Counseling Corp., which faced a class action that accused the credit counseling company of holding itself out as a nonprofit organization while its owners raked in millions. That class action was ultimately settled for $259 million.