A document buried in the National Archives reveals how the security service abused its power to help the government win.