Without justice there is not order. Order allows stability of structure. Stability fosters investment of energy, time, and resources. These investments create larger structures and advanced civilizations. From greater structure and order allows for greater sophistication of liberty -- creating a virtuous circle.
Order and Justice are related, as without justice, people will take it into their own hands, creating disorder.
Justice for all is a tricky and sensitive thing these days. Hence the important of grooming wisdom in the Judicial Branch. It's not clear who Jefferson was intending when he declared that "all are created equal". The Biblical narratives, for example, don't coincide with the origin of the Native Americans, for example. That of course doesn't mean that they should be treated less than equal or with less justice, but that their destiny and origin may not be the same. This issue also touches on topics which are too sensitive to discuss here, regarding race, sexual orientation, alien species, historical guilt, etc.
In addition to the immediate facts of a case, justice must ultimately include historical injustices that occurred generations ago.
In the World Constitution, the Judicial Branch is not like the Legislative where items are simply decided by majority rule. Like a jury, there must be unanimity. The Court is the final Branch of decision-making. Unanimity ensures greater justice is done, the development of wisdom, and minimizing work at higher levels from poor debate lower down. Cases can be appealed, but the price doubles and the loser has to pay. The weight of this grows as cases are appealed, for each level of governance has double the number of Judges. The cost is minimal where it counts, starting with only 1 Judge at the City level, and no debate is necessary. Unanimity forces debate, investigation, and further research among Judges, so that wisdom grows. If a simple vote were all that was required, life-time appointees could just do as little as possible: submit their opinion. And what or who would be able to do anything about it?
A court should rule against a law for the interest of Justice, without such power it would be just another arm of the executive and the legislatures who made it, as if the law were perfect.