Virginia Republicans and Democrats are locked in a fierce legal battle over the state’s representation in Washington.