Ah but it was. The Confederate congress was prohibited by their constitution from passing any law that impaired the right of slave ownership. Treaties may have the force of law but treaties cannot violate the Constitution.
Ah but it wasn't. Treaties carry the force of constitutional law. No, not merely the force of law - constitutional law.