Cloud and AI infrastructure firm CoreWeave (CRWV) has agreed to buy crypto-mining data center operator Core Scientific (CORZ) for roughly $9 billion in stock.