EU countries agree on AI rules