In Virginia, Republicans failed to win majorities in either the House of Delegates or the state Senate.