A bill approved Thursday by the state Senate will give Oregon livestock producers the ability to protect herds from predatory wolves.

Ranchers, animal welfare advocates and the state worked together on the bill. Ranchers sought to protect cattle from wolf attacks while advocates wanted to protect the endangered species as it continues to grow in the state.

The Daily Journal reports the bill unanimously passed by a vote of 30-0 and Gov. John Kitzhaber is expected to approve the bill as soon as the Oregon Fish and Wildlife Commission approves other provisions of a settlement between conservation groups and cattle ranchers.

The settlement, included as part of the bill, replaces a 2005 rulebook on wolf management. Prior to the settlement cattle producers were unable to kill wolves attacking their animals. The settlement gives ranchers nonlethal tactics to protect their herd, but have the ability to shoot wolves as a last resort.