EU Parliament adopts law to regulate artificial intelligence