Still having trouble with those black words on the white page aren't we?
You are one of the reasons many Americans turn away from Christians. No one has ever claimed Judah's act was "endorsed" by God. I said "forgiven", a concept clearly alien to your thoughts.
David’s act of adultery was punished, clearly, by God, even if spiritual forgiveness took place. David lost a child. Remember? Paul told Christians not to even eat with believers who were in gross sin. Do you have a problem with scripture itself, or does scripture describe a Godly reality that makes you uncomfortable?