A closely decided vote to allow state lawmakers to redraw Virginia’s congressional districts is now tied up in court, leaving the future of the state’s political map uncertain.