The European Parliament granted final approval to the European Union’s artificial intelligence law, one of the world’s first set of comprehensive AI regulations.