Leaked documents reveal bias and incompetence plaguing the government’s scrutiny of social media