The European Union approved regulations for artificial intelligence on Wednesday, the world’s first framework governing AI amid concerns the quickly developing technology could pose risks to humanity.