Jessica Pegula looked rattled for stretches of her semifinal but escaped in three sets, setting up an all-American final against Sofia Kenin, whose confidence has grown with every match.