Wall Street’s biggest banks are set to return tens of billions of dollars to investors after all the lenders passed the Federal Reserve’s annual test of their ability to withstand market turmoil.