Judge dismisses complaint brought on behalf of horses