The leading supplier of network switching gear for phone companies, Huawei Technologies Ltd. is spending heavily to develop its own chips, an area where the US dominates. It is maneuvering to gain a competitive edge and sidestep U.S. complaints it is a security risk.