Church may matter to some Judges, others not. They mostly, uniformally, want the criminal to attend 12-step meetings.
Your son should be getting sheets signed for every meeting he goes to. He should get 2 sponsors, who can attest to how he is doing in court .
Good LUck. Some courts allow...