For those who don't know, a totalitarian utilitarian is a villain who actually adheres to good philosphy's, the chief one being that the needs of the many, outweigh the needs of the one, or the few. We often describe good people as working in the interests of people, while bad people act in their own interests. But totalitarian utilitarians are MAJOR exceptions.
These characters do love, and care for their people, community, society, and even their nation, and often they in turn are loved by them. But what makes them villains in the eyes of the heroes, is the measures they take. For example, a villain like this might often try and stop crime BEFORE it happens via intense monitoring, or sometimes kill or arrest children who show signs of becoming dangerous adults, instead of giving them the help they need. Some of these characters even make efforts to control people that their society looks down on, such as the mentally ill, homeless, addicts, minorities, etc.
They often began as heroes, but as they continued again and again to fight evil, they began to take more extreme measures to stop it. But what makes them different from extremists, is that extremists are usually people who work outside the law, and against the people. But totalitarian utilitarians work WITH the law, and WITH the people. As such, the heroes of works like these, tend to be social outcasts, or knights in sour armor who might be somewhat selfish, since they are not allied with society, as society is an enemy of the hero.
Essentially, the traditional roles of hero and villain are reversed in these kinds of stories. Sometimes society does change their minds about the villain, and apologize to the hero, other times they stay on the same sides, it all depends on the writer. But I think a Totalitarian Utilitarian is fitting category, possibly a sub-category of an Extremist.