Local counties will get state funding to help farmers protect the environment.