A Minnesota man has been arrested after library staff saw a document threatening violence against federal judges.