A Democrat is elected governor of Virginia. Voters also cast ballots in high-stakes elections in New York and New Jersey.