Glenn Youngkin, who has been seen by some as a possible alternative to Donald Trump in the presidential contest, had campaigned hard to hold on to the slim Republican majority in the state house and flip the Democrat’s slim majority in the state Senate.