Taken on its own, in isolation from broader salvation history, the law does indeed offer a means for justification. It never succeeds, because no individual can keep it, but the offer is real.
The argument in Galatians 3:15ff is:
- This offer does not set aside the previous offer of righteousness by faith.
- The failure for the law to deliver righteousness doesn't mean it was useless - it served to expose sinfulness.