Revenue is growing again, but the bill for replacing US technology is showing up in Huawei’s margins.