Virginia voters have made history by electing candidates who broke race and gender barriers in this week's elections.