Google is facing a lawsuit alleging the tech giant illegally took data from millions of users to develop its artificial intelligence program.