Election officials were painstakingly recounting votes Thursday in one of two unresolved races in Virginia that will settle whether Republicans have reclaimed the majority in the state’s House of Delegates and completed a party sweep of last month’s contests.