I had only read
the excerpt. I didn't know
that he'd confessed twice.
It's possible that
the judge dropped the first knowing
it makes "the system"
look extra careful
while the other evidence
ensures conviction.
If you look at this legally the judge did the prosecution a favor. The confession was grounds for appeal. By not allowing it in that tactic is taken away from the defense once he's convicted.
Now they'll be left with the normal "he had a difficult life", "he was on drugs and not responsible" or whatever else BS things they come up.