Detroit’s election of its first woman mayor marks the culmination of decades of women’s political influence in the city.