Wall Street’s biggest banks have largely avoided investing directly in cryptocurrencies. But many are quietly working to integrate blockchain, the technology behind crypto, into trading and other businesses.