TD Bank, in the wake of embarrassing court losses, settled a critical claim for $41 million with a group of investors ripped off by ex-lawyer Scott Rothstein, a bankruptcy judge disclosed Wednesday.

A bank’s confidential settlement forged last September with New York-based Emess Capital LLC was made public by U.S. Bankruptcy Judge Raymond Ray, who is overseeing the estate of Rothstein’s defunct Fort Lauderdale law firm Rothstein Rosenfeldt Adler.