Trump is causing China’s tech giants a world of pain—and so is Beijing