Because we are sinners, we have many desires that are not good. This is why we need the law—to show us what is good and what is bad, or evil. But this is not the goal of the law. The final goal of the law is to lead us to Christ. While the law condemns those who break it, the law also directs sinners toward Christ.
Christ obeyed the law perfectly and thus fulfilled it. And because he gave up his life for ours, we can be credited with Christ’s righteousness, standing before God with a clean record for Jesus’ sake.
Our desire then is no longer just to obey the law but to love Christ. What we now desire is to have full life with him forever. We desire to be with Christ and to be like him. The end goal of the law is to direct our desires so that, by the power of the Spirit of God, we live by the love of God.
The sum of the law—love God with all your heart, soul, mind, and strength—directs our desires. And when we find the object of our greatest desire, we find peace with God.