Similar to Amos 6:12, this verse connects justice and righteousness. The fruit of righteousness is justice. Justice is fair treatment, not only in the courts but in every aspect of life. This strikes at the root of a major portion of God's judgment of Israel (Isaiah 59:13-15).
Here, righteousness is pictured as a standard, flag, or banner thrown to the ground. They had "[laid] . . . to rest" or thrown aside the Torah, the law of God, the teachings of God. Instead, they were practicing what we call "situation ethics"—allowing their weak and untrained consciences to be their guide. The practical result was "anything goes." What does this mean in relation to social conditions?
Righteousness is what is right with God: "For all Your commandments are righteousness" (Psalm 119:172). It is the cultivation of correct moral principles within ourselves. As a nation we should cultivate morality to produce spiritual and social growth. Righteousness—morality—is therefore the foundation of justice. Justice is correct moral practice, the practical application of morality.
The Israelites were not cultivating God's commandments, the moral standards upon which any nation must operate if it is to be successful. Instead, they had developed a specious code of living which was incompatible with the Word of God. Since the right moral principles were not being cultivated, there was no justice in society and immorality reigned.
While righteousness is inward, justice is out-going, concerning even such "trivial" things as being neat and orderly. Notice how much trash litters our highways and graffiti mars our cities. Maybe no law of God specifically regulates our driving, but is it not fair and just to be considerate of others on the road? Certainly God's lawhas to do with being thoughtful, gracious, tactful, and discreet, all of which are founded on one of its basic principles, the Golden Rule (Matthew 7:12).
Once these "little things" stop being cultivated, then injustice begins to appear in more serious areas, such as increased crime, divorce, abortion, suicide, and the like. Morality plunges and the people move farther and farther from godly mores and values. And when God sees no repentance in sight, His wrath is not long in coming.