NASA Moves Forward With Mission Using Spy Satellite Telescope (spaceflightnow.com)
NASA has formally approved plans -- a year ahead of schedule -- for an infrared space telescope launching around 2024 to record unique wide-angle views of the cosmos, seeking answers to questions about mysterious dark energy and searching for habitable worlds around other stars, the space agency announced Thursday. The Wide-Field Infrared Survey Telescope is projected to cost approximately $2.3 billion and should operate for at least six years. WFIRST's centerpiece is a 7.9-foot (2.4-meter) telescope originally built to allow U.S. intelligence officials to spy on adversaries. Instead of turning the powerful telescope toward Earth for a clandestine surveillance mission, NASA plans to repurpose the hardware for cosmic research.
Take a look at the early history of satellite reconnaissance
http://www.nro.gov/foia/declass/collections.html
From the early days, there has always been 3 prongs of the US space program: NASA is the public one with stated science goals, etc.; DoD has theirs which is a bit less public: ICBMs, Weather satellites, Communications; and then the intelligence community, which is very obscured.