The idea that preventing children to work in these factories helps the children is ill-conceived, as you pointed out. If Apple wanted to help these children, it could have required better working conditions or better pay, but not letting them work doesn't achieve the goal.
These kids won't just say "alright let's go to school then" when they can't work anymore.