With a €37 billion investment, Beijing is accelerating its efforts to develop homegrown semiconductor technology, targeting the one area where it has been most vulnerable: photolithography.