Failed Minn. health software ends up in court