This is why you have the right of discovery in court cases. He could simply show that she was lying by demonstrating that she got sperm from the sperm bank. (Alternatively, he could have proven that he had a vasectomy before they dated). Both of those two things leave hard medical records.
Like I said before, either your friend lied or he needs a better lawyer. Given the story that you stated, the law is definitely on his side.