Time to stop housing kids in nursing homes, judge tells Flor