Actually Gettysburg was pretty inconclusive in military terms. Casualties were about even on both sides. However, the battle marked the last time the Confederacy was able to mount a meaningful invasion of the North. After that the Union forces slowly ground the Confederacy down under finally it ran out of manpower.
Also it was Robert E. Lee who commanded the Confederates at Gettysburg, not Stuart.