Civilised societies enshrine human rights in law not because it is easy or politically popular – it rarely is – but because it is the right thing to do.
They subscribe to the UN Universal Declaration of Human Rights for the same reason and, in the case of European states, they subscribe to the European Convention on Human Rights and the European Court of Human Rights (which has nothing to do with the European Union).
Human rights are not there for the easy cases but for the difficult ones, those where the individuals involved are far from heroic and indeed represent a potential threat to national security. Cases, in other words, such as that of Shamima Begum.