Galatians 5
1 Stand fast therefore in the liberty wherewith Christ hath made us free, and be not entangled again with the yoke of bondage.
If God had saved the Israelites out of bond in Egypt in order to put them under bondage to the Torah, then it would be for bondage that God sets us free, however, Galatians 5:1 says that it is for freedom that God sets us free, so you are not correctly identifying what Paul was speaking against. In Psalm 119:142, the Torah is truth, and in John 8:31-36, it is the transgression of the Torah that puts us into bondage while the truth sets us free.
2 Behold, I Paul say unto you, that if ye be circumcised, Christ shall profit you nothing.
A servant of God can speak against obeying what God has commanded for an incorrect reason without speaking against obeying what God has commanded. If Paul had been speaking against circumcision for any reason, then Galatians 5:2 would mean that he caused Christ to be of no value to Timothy when he had him circumcised and Christ is of no value to roughly 70% of the men in the US. In Acts 15:1, men from Judea were wanting to require Gentiles to become circumcised in order to become saved, however, that was never the reason for why God commanded circumcision, so the Jerusalem Council upheld the Torah by correctly ruling against requiring circumcision for an incorrect reason. In Exodus 12:48, God commanded for Gentiles to become circumcised in order to eat of the Passover lamb, so the Jerusalem Council should not be interpreted as ruling against Gentiles correctly obeying what God has commanded as if they had the authority to countermand God.
3 For I testify again to every man that is circumcised, that he is a debtor to do the whole law.
4 Christ is become of no effect unto you, whosoever of you are justified by the law; ye are fallen from grace.
I have not spoke in favor of obeying either the Torah or "works of the law" in order to become righteous as the result. God wanted His children to repent and to return to obedience to the Torah all throughout the Bible and even Christ began his ministry with that Gospel message (Matthew 4:15-23), so it would be absurd to interpret this as Paul warning us against obeying God and warning that we will be cut off from Christ if we repent and believe the Gospel of Christ. It would also be absurd to interpret Psalm 119:29-30 as if he wanted God to be gracious to him by teaching him how to fall from grace, so again you are not correctly identifying what Paul was speaking against.
5 For we through the Spirit wait for the hope of righteousness by faith.
The issue of the way to become righteous is different from the issue of what describes the behavior of the righteous. The only way to become righteous is through faith but what it means to be righteous is to be a doer of righteous works in obedience to the Torah (1 John 3:4-7, Isaiah 51:7). The Torah was never given as a way or earning our righteousness even as the result of having perfect obedience to it (Romans 4:1-5), but rather it was given to describe the behavior of the righteous as it describes the behavior of Christ, so it is what we get to experience by being given the gift of righteousness through faith. Paul also affirmed in Roman 2:13 that only the doers of the Torah will be declared righteous, so there is a reason why our righteousness requires us to choose to be doers of the Torah other than in order to earn it as the result, namely faith insofar as the faith by which we are declared righteous apart from works also upholds the Torah (Romans 3:28-31).
6 For in Jesus Christ neither circumcision availeth any thing, nor uncircumcision; but faith which worketh by love.
In 1 Corinthian 7:19, Paul said that circumcision counts for nothing and that what matters is obeying the commandments, so he equated obeying God's commandments with faith working through love. In Matthew 23:23, faith is one of the weightier matters of the Torah, and in Matthew 22:36-40, Jesus summarized the Torah as being about how to love. Paul also said that circumcision has much value in every way (Romans 3:1-2) and that circumcision conditionally has value if we obey the Torah (Romans 2:25), so the value of circumcision is entirely derived from our obedience to God's commandments. Someone being physically circumcised is a sign of them having a circumcised heart, which is evident by their obedience to the Torah, so physical circumcision only has value insofar as what it is a sign of is true.