Robert,
The judge can cause a prisoner to be righteous in the courtroom, "in the eyes of the court." People try to push the existential over the declarative, but that is prejudicial.
To make someone righteous has an end in view, or a final state. But the declaration often precedes that actual state in the body of the person. And that requires a different sort of basis for such a declaration than the actual being of the person.
The WORD of God creates its own reality. But from our experiential standpoint, it isn't always felt instantly.
Yes, we are made righteous... eventually, in our person. Through union, now, with Christ, we are "definitively sanctified." But that's a product of our union. We are righteous now because we are IN Christ, and HE is righteous right now. Ours is an alien righteousness, that of Another.
AMR