A federal judge said Wells Fargo must face litigation seeking to hold it responsible for investor losses stemming from its alleged failures as a trustee overseeing risky residential mortgage-backed securities.

U.S. District Judge Katherine Polk Failla in Manhattan said the plaintiffs, including a few dozen funds from BlackRock, Pacific Investment Management Co., Prudential Financial, and TIAA-CREF, may pursue breach of contract and conflict of interest claims related to 53 trusts.

Failla also said the investors may pursue some claims alleging breaches of fiduciary duty and due care, but she dismissed claims alleging general negligence and the violation of a New York law governing mortgage trusts. Failla also denied Wells Fargo's bid to dismiss claims by Germany's Commerzbank.