(Reuters) - Custody bank State Street Corp said it has agreed to resolve all pending litigation and regulatory matters in the United States related to its indirect foreign exchange business.