Honestly, the judge or CSEA are to blame once DNA proved he was not the father.
He's not the first father to be told he had to pay for a child that wasn't his. I totally don't understand how any person can be held responsible for paying for a child that is not theirs, but it happens more than we know.