China is taking its rivalry with the U.S. to the heavens, spending at least $9 billion to build a celestial navigation system and cut its dependence on the American-owned GPS amid heightening tensions between the two countries.