Huawei could quickly lose its grip on the No. 2 ranking in worldwide cellphone sales after Google announced it would comply with U.S. government restrictions meant to punish the Chinese tech powerhouse.