The law that was nailed to the cross was the ones that condemned us (Col 2)
Col 2: 14 having wiped out the handwriting of requirements that was against us, which was contrary to us. And He has taken it out of the way, having nailed it to the cross.
these handwriting of requirements were the commands written by God himself in which Moses said, cursed is the one who does not confirm and obey every word of this law.
the ceremonial laws did not bring us under a curse.
the sacrificial law did not being us under a curse
the ministration of death did
2 cor 3. 7 But if the ministry of death, written andengraved on stones, was glorious, so that the children of Israel could not look steadily at the face of Moses because of the glory of his countenance, which glory was passing away, 8 how will the ministry of the Spirit not be more glorious? 9 For if the ministry of condemnation had glory, the ministry of righteousness exceeds much more in glory. 10 For even what was made glorious had no glory in this respect, because of the glory that excels. 11 For if what is passing away was glorious, what remains ismuch more glorious.
the ministry of death her are the stone tablets given to Moses, when Moses came down from the mountain, his face shown with glory that they could not look at him, but as the glory was passing away, yet was glorious, the ministry of death, which in itself was glorious, also was passing away, as something much more glorious took its place, here called the ministry of righteousness.