The Federal Reserve for the first time tested major banks’ ability to withstand crisis scenarios — and the largest U.S.…