When Thomas Drake, then an official at the National Security Agency, realized that the agency’s decision to shut down an internal data analysis program and instead outsource the project to a private contractor provided the government with less effective analysis at much higher cost, he tried to do something about it.