A former government contractor who worked in the intelligence community has appeared in court charged with making "damaging" disclosures under the Official Secrets Act.