Abigail Spanberger’s decision to seek the Virginia governorship next year led to crowded nomination contests on both sides for this sprawling swing district.