A data breach that led the UK government to offer relocation to 15,000 Afghans in a secret scheme with a potential cost of more than £2bn escaped parliamentary and media scrutiny until Tuesday when a superinjunction was lifted more than 600 days after it had taken effect. Here, the Guardian explains the legal background to the controversy.