A prominent Long Island, N.Y., law firm is named as a defendant in a federal class action suit brought by investors who were allegedly bilked out of $20 million by a “boiler room” Ponzi scheme masterminded by two convicted felons.

But New York Supreme Court Justice Charles E. Ramos dismissed a nearly identical complaint against the firm brought in New York County earlier this year.