The first word Tzedek, which means justice, is repeated twice. This indicates that this word is being emphasized.
Rashi tells us that to find justice we must find a fare, unbiased judge.
לֹא תִּקַּח שֹׁחַד וְגוֹ'. כֵּיוָן שֶׁנּוֹתֵן הַדַּיָּן אֶת לִבּוֹ עַל הַשֹּׁחַד, נַעֲשֶׂה עִוֵּר בַּדִּין וְאֵינוֹ יָכֹל לָדוּן אוֹתוֹ בֶּאֱמֶת.
(Deut. 16:19, cont.:) “You shall not take a bribe.” When the judge sets his heart on a bribe, he becomes blind to justice and he is unable to judge [a case] honestly.
Rabbi Hillel told the person who he converted that the essential lesson of Torah is to not do what is hateful for them to other people. The rest of the Torah supports this position.
Rashi lets us know that the things people do that are hateful to others are hateful to God.