I'm no Apple supporter, but your comparison is (heh) apples-and-oranges. In the US, it's refusing to alter its software to allow the FBI to access private data. In China, it's allowing the government to perform a security audit of its source code - you know, just like every open source project on the planet implicitly allows China to do.
I mean, by that standard, Linux is co-operating with Chinese attempts to violate the privacy of its users, because it publishes its source code for the government to audit (if they feel like it), too. And honestly, with this admission about the FBI coming into the open, it just goes to show how justified other governments are in demanding to examine US products for signs of government malfeasance.