How it is justified:

Abortion is inflicted on innocent unborn children. The death penalty is inflicted on convicted murderers.

Taxes are inflicted on honest citizens. Torture is inflicted on foreign terrorists.

If you view things that way, there is no cognitive dissonance whatsoever, but they are thinking about it. They simply have different values.