Google has taken a stake in TeraWulf, along with rival mining firm Cipher, as it backstops the firms' debt obligations.