Supreme Court to weigh girl's custody case