European Union leaders have agreed to a long-term budget after Britain offered to reduce its annual rebate .