No, it's actually Holy Spirit inspired Scripture written by Paul. Galatians 2:21 I do not nullify the grace of God, for if righteousness were through the law, then Christ died for no purpose.
The Holy Spirit inspired Scripture written by Paul that you quoted is talking about righteousness through the law, which is correct. We are not talking of works of the law:
2. Did you clothe the naked?
3. Did you give a drink to the thirsty, etc.
All He did was raise the bar.
Catholics misunderstand the Law.
For one thing, Jesus didn't come to change the Law but fulfill it.
Matthew 5:17-20 17 Do not think that I have come to abolish the Law or the Prophets; I have not come to abolish them but to fulfill them. 18 For truly, I say to you, until heaven and earth pass away, not an iota, not a dot, will pass from the Law until all is accomplished. 19 Therefore whoever relaxes one of the least of these commandments and teaches others to do the same will be called least in the kingdom of heaven, but whoever does them and teaches them will be called great in the kingdom of heaven. 20 For I tell you, unless your righteousness exceeds that of the scribes and Pharisees, you will never enter the kingdom of heaven.
And the Law was never put into effect to save people anyway but rather to show us what God's standards are so that we could come to Christ for salvation.
Galatians 3:15-29 15 Brothers, let me take an example from everyday life. Just as no one can set aside or add to a human covenant that has been duly established, so it is in this case. 16 The promises were spoken to Abraham and to his seed. The Scripture does not say and to seeds, meaning many people, but and to your seed, meaning one person, who is Christ.
17 What I mean is this: The law, introduced 430 years later, does not set aside the covenant previously established by God and thus do away with the promise. 18 For if the inheritance depends on the law, then it no longer depends on a promise; but God in his grace gave it to Abraham through a promise.
19 What, then, was the purpose of the law? It was added because of transgressions until the Seed to whom the promise referred had come. The law was put into effect through angels by a mediator. 20 A mediator, however, does not represent just one party; but God is one.
21 Is the law, therefore, opposed to the promises of God? Absolutely not! For if a law had been given that could impart life, then righteousness would certainly have come by the law. 22 But the Scripture declares that the whole world is a prisoner of sin, so that what was promised, being given through faith in Jesus Christ, might be given to those who believe.
23 Before this faith came, we were held prisoners by the law, locked up until faith should be revealed. 24 So the law was put in charge to lead us to Christ that we might be justified by faith. 25 Now that faith has come, we are no longer under the supervision of the law.
26 You are all sons of God through faith in Christ Jesus, 27 for all of you who were baptized into Christ have clothed yourselves with Christ. 28 There is neither Jew nor Greek, slave nor free, male nor female, for you are all one in Christ Jesus. 29 If you belong to Christ, then you are Abrahams seed, and heirs according to the promise.
"Now that faith has come, we are no longer under the supervision of the law." = We are free from the obligation of trying to live by the Law when we've put our faith in Christ for salvation because we are now sons of God through faith.