The government is in a row with the EU over the UK’s membership of the €100bn Horizon research programme.