The European Union’s (EU) parliament on Wednesday approved the world’s most comprehensive legislation to govern artificial intelligence (AI), setting new rules for AI developers and restrictions on how the technology can be used.