Counties and towns have passed ordinances to regulate CAFO operations, while farm groups want to prevent them.