European Union lawmakers have approved the bloc’s “Artificial Intelligence Act.”