You can say “it codified [slavery] in the above sense”, but obviously this isn’t the sense that people meant when they went to war to end slavery. And neither you nor I had to make the sacrifice that those people made to end what they considered to be slavery in the US.
Maybe it’s worth considering what the purpose of the 13th amendment was? It’d be a pretty huge mistake to conclude that the purpose of passing the 13th amendment was to enshrine slavery in law, which so many people fought and died to abolish, right?