As long as the inhabitants agree on a specific course of things and have found them to help the city, the "good of the city" as concerning its government is meant as just following that.
So, "good of the city" as in "doing what the city deems good", not as in moral.
So, "good of the city" as in "doing what the city deems good", not as in moral.