Paul says the the Torah is holy and good. The only reason it presents him a problem is that his flesh is weak and he is unable consistently to do the things that he knows are good. It is his own weakness that gives sin power over him. Since he is not able to change his mortal nature, he needs the power of Christ and the Spirit to lead him through to life.