The first-ever legal framework on artificial intelligence, the AI Act, could set the tone for AI regulation around the world.