The spiritual Law had been in effect from creation....the Law of Moses was the Law added later.
It was added because of transgressions (sin). The definition of sin? [1 John 3:4] The transgression of the Law. What Law???? God's spiritual Law that preceded "The Law of Moses!"
The civil and ceremonial "Law of Moses" is what has been done away with and is of what the Apostle speaks. Deuteronomy, chapters 27 & 28 are good examples of the Mosaic Law. Exodus 20:1-17 is a good example of the Law of God.
They are both the Laws of YHWH. Mat 23:23
Woe unto you, scribes and Pharisees, hypocrites! for ye pay tithe of mint and anise and cummin, and have omitted the weightier [matters] of the law, judgment, mercy, and faith: these ought ye to have done, and not to leave the other undone.
It is clear that both sets are to be practiced.
1And God spake all these words, saying,
2I am the LORD thy God, which have brought thee out of the land of Egypt, out of the house of bondage.
3Thou shalt have no other gods before me.
4Thou shalt not make unto thee any graven image, or any likeness of any thing that is in heaven above, or that is in the earth beneath, or that is in the water under the earth.
5Thou shalt not bow down thyself to them, nor serve them: for I the LORD thy God am a jealous God, visiting the iniquity of the fathers upon the children unto the third and fourth generation of them that hate me;
6And shewing mercy unto thousands of them that love me, and keep my commandments.
7Thou shalt not take the name of the LORD thy God in vain; for the LORD will not hold him guiltless that taketh his name in vain.
8Remember the sabbath day, to keep it holy.
9Six days shalt thou labour, and do all thy work:
10But the seventh day is the sabbath of the LORD thy God: in it thou shalt not do any work, thou, nor thy son, nor thy daughter, thy manservant, nor thy maidservant, nor thy cattle, nor thy stranger that is within thy gates:
11For in six days the LORD made heaven and earth, the sea, and all that in them is, and rested the seventh day: wherefore the LORD blessed the sabbath day, and hallowed it.
12Honour thy father and thy mother: that thy days may be long upon the land which the LORD thy God giveth thee.
13Thou shalt not kill.
14Thou shalt not commit adultery.
15Thou shalt not steal.
16Thou shalt not bear false witness against thy neighbour.
17Thou shalt not covet thy neighbour's house, thou shalt not covet thy neighbour's wife, nor his manservant, nor his maidservant, nor his ox, nor his ass, nor any thing that is thy neighbour's.
16Cursed be he that setteth light by his father or his mother. And all the people shall say, Amen.
17Cursed be he that removeth his neighbour's landmark. And all the people shall say, Amen.
18Cursed be he that maketh the blind to wander out of the way. And all the people shall say, Amen.
19Cursed be he that perverteth the judgment of the stranger, fatherless, and widow. And all the people shall say, Amen.
20Cursed be he that lieth with his father's wife; because he uncovereth his father's skirt. And all the people shall say, Amen.
21Cursed be he that lieth with any manner of beast. And all the people shall say, Amen.
22Cursed be he that lieth with his sister, the daughter of his father, or the daughter of his mother. And all the people shall say, Amen.
23Cursed be he that lieth with his mother in law. And all the people shall say, Amen.
24Cursed be he that smiteth his neighbour secretly. And all the people shall say, Amen.
25Cursed be he that taketh reward to slay an innocent person. And all the people shall say, Amen.
26Cursed be he that confirmeth not all the words of this law to do them. And all the people shall say, Amen.