There the righteous might dispute with him; so should I be delivered for ever from my judge.
There - rather, Then: if God would 'attend' to me (Job 23:6).
Righteous - i:e., the result of my dispute would be, He would acknowledge ME as righteous. Job means, by "the righteous," himself, then recognized as such by God.
Delivered - from suspicion of guilt on the part of my Judge.