EU agrees compromise on nuclear energy amid French pressure