A judge overseeing the case told Cody Mort her "lying" could have posed a risk that "appropriate medical treatment could have been denied or delayed" to the baby