The suit accused the bank of ignoring red flags for years.