Shelby and Story counties fought a years-long battle for the right to set ordinances on where pipelines could go.