A county is entitled to appropriate injunctive relief to prevent the violation or threatened violation of an ordinance the county adopts under this subchapter.