Robert Jenrick, the immigration minister, said the British government would do “whatever is necessary”, even if that meant pulling out of the ECHR, the 70-year-old pan-European treaty that protects human rights and political freedoms in the continent.