The European Union has agreed to a financial settlement with Britain under which London has committed to pay a set share of eu budgets after Britain has left the bloc.