A judge should be impartial, and Freemasons should be law abiding.
So your membership as a Freemason would not tilt the balance of Justice one way or the other. But if it did (it won’t), it should be in the sense of more severity.
If you are committing a crime in civil law, you have most certainly already breach your duty as a Freemason: you should not expect any help with civil proceeding, and rather expect further disciplinary action from your sisters and brethren.
Freemasonry is not a free pass for anything.
If anything it is more demanding of its members because of their commitment to the truth and to self-improvement for the benefit of humanity.