A legal loophole in Idaho that allows parents of teens to nullify child custody agreements by arranging child marriages will remain in effect, under a ruling from the state Supreme Court on Tuesday.