A world-first law in Europe is targeting AI. Other countries can learn from it