The once-a-decade redrawing of congressional boundaries made Spanberger’s district more Democratic this year by adding communities closer to Washington and removing Republican-leaning areas farther south around Richmond, said Stephen Farnsworth, a political science professor at the University of Mary Washington in Fredericksburg.