Judges are referred to as Elohim, the same term used for Hashem, as it implies stature and authority. Also when a judge is righteous and all his words and rulings are true, the light of Hashem Himself dresses itself in him through his truthfulness, since that is a manifestation of Hashem's light.
Everything in the world, even mundane transactions contain G-dly life force which allows them to exist. For most people this is not evident until the transactions are brought before a Beis Din and are analyzed according to the Torah laws, displaying the concealed elements of G-dliness that they contained all along. Therefore the judges are called 'Elohim' since they make the G-dliness and Torah recognizable in all the mundane transactions that are brought to them (Even in items like crimes, oxan, donkeys, sheep, garments and lost objects).
It is a positive commandment to lend money to the needy. It is forbidden to charge interest. Collaterals must be returned at time of repayment. Hashem listens to the cries of the exploited.
Hashem sustained the Universe from its creation until the Giving of the Torah out kindness and as a loan that would be repaid once the Jews received the Torah. Even following this, when the Jews sinned it was befitting that Hashem return the world to a state of chaos. It is only through His kindness that He loans us existence and gives us time to pay back our debts that were created through our sins, little by little. So too we have to connect to the ways of Hashem and lend money to the poor without oppressing them, allowing them to pay back when they can, just like Hashem does not oppress us, allowing a very extended period to pay back our debts little by little.