Spanberger wins Virginia governorship, flipping state to Democrats