This story seems to make the rounds every year or so in some variation. What most people seem to forget is that the courts are operated by the State and in cases like these they are always the 3rd 'silent' interested party and as such any ruling almost always result in some means to mitigate any cost to the State.
In this case it was quite simple. Verbal or even written agreements between two parties are very difficult to enforce infinitum because circumstances change. The woman may indeed have concurred on a no child support agreement but upon having the twins found the cost of two children too much or decided to stay home or lost her job etc. Any number of factors that altered her status and thus put the State in jeapardy for being on the hook for welfare or other support costs. Naturally the judge ruled as they always do, "what is best for the State followed by what is best for the child." In this situation the father was deemed as having deep pockets so he was on the hook if for no other reason than to protect the State.
Would this apply to a more standard sperm donation? It would probably be a tricky decision simply because donations would cease if the threat of child support loomed over one's head in perpetuality. But then again one never knows in these cases. If the costs looked too prohibitive to the State then the judge might very well rule in favour of total liability for the father.
The last case of note was a guy who had gotten divorced from a real gold digger but her last go at him was to claim ownership of some fertilized eggs that were frozen as part of the divorce settlement. She claimed they were hers and he said he didn't care as long as it was clear that any children were not his problem. I believe the judge ruled two fold; first that the eggs were hers and second that were any off spring to be born as a result he would in fact be financially liable.
Talk about a mess! Makes me glad to know I'm fixed.