The Attorney General shall at the request of an attorney for the Commonwealth, provide legal service to such attorney for the Commonwealth in any proceedings brought against him seeking to restrain the enforcement of any state law.
Any costs chargeable against the defendant in any such case shall be paid by the Commonwealth from the appropriation for the payment of criminal charges.
Va. Code § 2.2-506