The European Court of Human Rights found some aspects of the UK’s mass surveillance regime to be in violation of the right to privacy and the right to freedom of expression.