Dominion Energy has filed a lawsuit against Prince William County, challenging its decision to oppose a plan to overhaul an existing substation.