CHONGQING, China—On the outskirts of this southwestern Chinese hub lie the student factories. Schools send thousands of teenagers here to put together electronic devices for some of the world’s largest brands. Many students say they are given no choice.