USA could decide war crimes are immoral and choose, like other nations, to not commit them and to be bound to a body that overseas that.
That is not lack of sovereignty, that is choice of morality.
Democracies can only enact the chosen rule of law because they're sovereign.