By works of the Law Paul means the Jewish Law. He uses the same phrase in Rom 3:20
For no human being will be justified in his sight by works of the law, since through the law comes knowledge of sin.
If we look back at Rom 2:25 he writes Circumcision indeed is of value if you obey the law; but...