One solution would be to stop building these systems inside the United States, the same way as you would never think of building a social network in China.
(Look at what the Chinese government did when they wanted information from the New York Times. No judge approved that disclosure...)
Also, people do build social networks in China --they have to as most SN from outside China are not predictably available without proxies, etc.