As U.S. export controls bite, China’s tech giants and local governments are forging unlikely alliances — Huawei’s with rival SMIC, for one — to build a parallel ecosystem.