Ukraine has 'legitimate right' to hit targets in Russia, EU says