When the Trump administration blacklisted Huawei Technologies Co. in 2019 over spying concerns, the move almost wiped out the Chinese company’s global smartphone business. Yet it bounced back with the support of China’s government, and is now at the center of national efforts to achieve technological independence from the West.