A law firm with ties to the state’s largest business lobby is suing the Wisconsin Department of Natural Resources on behalf of dairy groups, the suit targeting rules requiring factory farms to obtain permits that seek to keep manure out of waterways.