So the law was put in charge of us until Christ came that we might be justified by faith.
NIV
So that the Law served [to us Jews] as our trainer [our guardian, our guide to Christ, to lead us] until Christ [came], that we might be justified (declared righteous, put in right standing with God) by and through faith.
AMP
Wherefore the law was our schoolmaster to bring us unto Christ, that we might be justified by faith.
KJV