Beijing is funding humanoid robots to slash Chinese factory costs and build a competitive advantage.