Water fight over Minn. pig farm goes to court