Judge rules child is a dependent of the state