EU reaches deal on Britain's reform demands