Qualcomm’s strategic value to the U.S. saved it from a hostile takeover, but the mobile-chip giant is now at the center of an escalating tech rivalry between its home country and its biggest market: China.