People use justifications that some things are good for society, when some of those things should be considered objectively evil. Lots of examples in history of very bad things being considered good for society (or, more accurately, a sub-set of society)
Better to use secular justifications that things are good for all individuals, and are therefore (secularly) moral. Intentional homicides are, for the most part, condemned in societies that respect the individual more than society as a whole.
When individuals are the primary unit of society which is to be protected, then justice is usually done.
When groups of people become the primary unit of society (whether by religion, or ethnicity, or sexual persuasion, or whatever) becomes more valued than individuals, then evil things start to happen.
Proper Christianity loves all individuals and condemns (through persuasion, not power) acts alone, and if everyone lived by that, society would be freaking amazing. Warped Christianity (used for political gain) condemns individuals, and suffers the same problem the Left suffers when it values sub-group powers rather than individual freedoms.