Musk and other tech giants are joining forces to fund research that will halt artificial intelligence from overtaking mankind.