Judge allows father to have contact with children he’s accused of torturing on dangerous hike