While it defies U.S. government, Apple abides by China's orders — and reaps big rewards