Israel, EU reach compromise over 'funding ban'