A federal judge dealt a devastating blow to a lawsuit against JPMorgan Chase that accused the nation’s largest bank and its affiliates of duping investors into buying troubled mortgage-backed securities.

In a ruling, Judge Jed S. Rakoff dismissed claims from Dexia, a Belgian-French bank that had sued JPMorgan over losses on $1.6 billion in 65 residential mortgage investments, according to court documents.