Judge Bryan Biedscheid said in a ruling late Thursday that the bulk of the money will be used for treatment services for young people.