How the government outsourced the business of spying to Silicon Valley