The new regulations aim to prevent companies from shifting production out of China, directly challenging India's ambitions to become the world's next factory.