Facebook Inc. and Chinese smartphone company Xiaomi Corp. are teaming up to launch a virtual-reality headset in China that would give the American tech giant a toehold in a growing market where its main business has long been blocked.