The bank also said that it had reached a settlement Tuesday with American International Group Inc. to resolve all outstanding residential mortgage-backed securities litigation between the two companies.