An elected civil court judge who's a self-described social worker at heart won a three-person race for a surrogate's court judgeship in New York County in this week's Democratic primary, by a nearly 10,000-vote margin.