EU Legislators Approve First Formal Rules on AI