A TV film starring Benedict Cumberbatch about Britain’s 2016 referendum on membership in the European Union had a difficult journey to the screen.