The American phenom scored a dramatic three-set victory over Ukraine’s Marta Kostuk in an exhausting 3-hour, 8-minute match.