Jeremiah 23:6 "In his days Judah shall be saved, and Israel shall dwell safely: and this is His name whereby He shall be called, THE LORD OUR RIGHTEOUSNESS"
When I was in high school, I was a pretty average student. In my senior year, one of my favorite classes was Physics with Miss Obrupta. Miss Obrupta was a an older woman who never married, and was quite content teaching her beloved Physics. She was the nicest teacher I ever had in high school. I guess you could say that, in her class I was the "teacher's pet". When she gave us a test, if I didn’t know the answer (which was quite often), I would go to Miss Obrupta's desk and ask "What does this question mean?" or "What type of an answer are you looking for?". Sure enough, she would give me the exact answer to the question. Not fair you might say, and your probably right.
In Jeremiah 23:6, one of the names of God is THE LORD OUR RIGHTEOUSNESS. This is speaking of Jesus in the new covenant. In other words, Jesus "passed all the law tests" on our behalf. His righteousness has become ours. He got an A+ in law class. And here's more great news. He took the test on our behalf, we don't have to take it! He got an A+, we get an A+. Romans 8:4 says "That the righteousness of the law might be fulfilled in us". Because Jesus is our righteousness, you and I qualify for all of the blessings of the law but not the curses. That's truly awesome.
You see Miss Obrupta liked me, she favored me, she gave me undeserved answers. Jesus has given you and I undeserved, unearned, and unmerited favor. Don't worry, stop studying the law, you received you’re A+. Study grace. Jesus made you righteous. Rest. Enjoy.