The accused, 41, had 118 previous convictions and harassed ex at women's shelter, according to judgment