Microsoft has signed a $9.7 billion deal with data center operator and former Bitcoin miner IREN, sending both firms' stock soaring.