Minn. finishes primary recount in court race