In the last verse, Paul seems to be thanking God, that in his flesh, he serves the law of sin.
I think he's thanking God for setting him free from his body of sin in the previous verse. The law of flesh is living according to the flesh....a slave of sin. Paul is saying that Christ let's him overcome the flesh.