Both sentences are OK. However, sentence 1 makes it clear that the children will go to bed only after drinking a glass of milk. I'd say that sentence 2 would generally be interpretted to mean pretty much the same thing (i.e. "The children won't go to bed unless they drink a glass of milk first.")
Ultimately the main difference between the two sentences is tha