Part of a budget surplus in Virginia that is nearly twice as much as initially expected will be earmarked for transportation.