It is not the case that Aquinas holds that justice renders to each their due (suum cuique), and that disproportionate punishment is an injustice even when inflicted by legitimate authority (ST II-II, Q.61).
?Set your confidence on the premises below to see your aggregate.