The world's largest machine maker is set to take a $54 million stake in Core Scientific as the miner emerges out of Chapter 11 proceedings.