A federal judge in Dallas has upheld most of the claims in a major lawsuit against five banks accused of playing a role in Texas financier Allen Stanford's massive Ponzi scheme.

Tuesday's ruling by U.S. District Judge David Godbey means the suit filed in 2009 on behalf of thousands of Stanford victims can proceed against the banks, which include HSBC, Societe Generale, Toronto Dominion Bank, Trustmark National Bank and the Bank of Houston. The suit accuses the banks of playing "an essential role" in the $7 billion fraud, which each bank has denied.