Bill Gates’ venture firm, with backing from Jeff Bezos and Jack Ma, just minted a $1 billion A.I. unicorn that uses machine learning for mining rare earth metals crucial for EVs