China is closing in on US technology lead despite constraints