Man settles with St. Joseph County after being wrongly impri