Bank of America CEO Brian Moynihan said the US economy has weathered enormous challenges — largely thanks to its banks.