Google, Facebook, Microsoft, and the other tech titans have had to fight for their lives against their own government.