Do you know there are multiple laws in Bible? Moral Law, Ceremonial Law, Civil Laws, Criminal laws, Health Laws, Law of Sin (Rom 7)
When Paul is talking about Law we need to see the context and identify which law he is talking about.
Gen 26:5 Because that Abraham obeyed my voice, and kept my charge, my commandments, my statutes, and my laws.
Rom 3:31 Do we then make void the law through faith? God forbid: yea, we establish the law.
1 Cor 7:19 Circumcision is nothing, and uncircumcision is nothing, but the keeping of the commandments of God.
For we know that the law is spiritual: but I am carnal, sold under sin. For I delight in the law of God after the inward man: I thank God through Jesus Christ our Lord. So then with the mind I myself serve the law of God; but with the flesh the law of sin. Rom 7:14,22, 25
Rev 22:14 Blessed are they that do his commandments, that they may have right to the tree of life, and may enter in through the gates into the city.
1 John 3:4 Whosoever committeth sin transgresseth also the law: for sin is the transgression of the law.
For whosoever shall keep the whole law, and yet offend in one point, he is guilty of all. For he that said, Do not commit adultery, said also, Do not kill. Now if thou commit no adultery, yet if thou kill, thou art become a transgressor of the law. So speak ye, and so do, as they that shall be judged by the law of liberty James 2:10 – 12
And hereby we do know that we know him, if we keep his commandments. He that saith, I know him, and keepeth not his commandments, is a liar, and the truth is not in him. 1 John 2: 3-4
THE ABOVE VERSES TALK ABOUT THE MORAL LAW (TEN COMMANDMENTS)
Eph 2:15 Having abolished in his flesh the enmity, even the law of commandments contained in ordinances (ceremonies); for to make in himself of twain one new man, so making peace;
(ceremonies is added by me)
Blotting out the handwriting of ordinances that was against us, which was contrary to us, and took it out of the way, nailing it to his cross; Which are a shadow of things to come; but the body is of Christ. Col 2:14, 17
The above verses talk about CEREMONIAL LAW which are shadow of ministration of Christ as sacrificial priest.
Now let us hear the wise man speaking
Let us hear the conclusion of the whole matter: Fear God, and keep his commandments: for this is the whole duty of man. Ecc 12:13