Another matter, “these are the ordinances,” that is what is written: “The might of the King is that He loves justice” (Psalms 99:4). Moses said to Israel: ‘The Holy One blessed be He gave you His Torah. If you do not perform the laws, He will take His Torah from you.86 A Torah scholar who does not seek to bring about justice among the populace will not succeed in his studies (Etz Yosef). This is derived from the vav at the first word of the phrase “these [ve’eleh] are the ordinances.”
This vav connects the ordinances to the giving of the Torah in the preceding passage (Maharzu). Why? Because the Holy One blessed be He gave you His Torah only so you will perform the laws,’ as it is stated: “The might of the King is that He loves justice.” If you perform the laws, the Holy One blessed be He is destined to restore your courts to you, as it is stated: “I will restore your judges as at first” (Isaiah 1:26). What is written thereafter? “Zion will be redeemed with justice” (Isaiah 1:27).