A draft law in the European Parliament has become the world?s most far-reaching attempt to address the potentially harmful effects of artificial intelligence.