Sherri Shepherd is now the legal mother of a baby boy.

A Pennsylvania judge decided on Tuesday that the former "View" co-host be listed as the legal mother of an eight-month-old baby born via surrogate with her soon-to-be-ex-husband Lamar Sally. The ruling mandates that Shephard's name will be listed as the baby's mother in his birth certificate and that the 47-year-old comedienne will be financially responsible for the child.

"I'm glad it's over, but I feel sad what it had to come to. Now I can go back to L.A. and tend to my son," Sally told PEOPLE outside the courtroom on Tuesday. He also told TMZ, "I want her to go on television and apologize the same way that she went on there and accused me of being a gold digger and tricking her into having a baby."

Shepherd did not appear in the court and her lawyer refused to comment, according to TMZ.

"Justice was served," Sally's attorney, Tiffany Palmer, told E! News. "The court found that the baby has two legal parents and those people are the two people who conceived him, Lamar Sally and Sherri Shepherd."

Palmer continued, "The court upheld what we believe is and should be the law in Pennsylvania. If you set out to conceive a child through assisted reproduction and enter into contracts to do so, you cannot just walk away from your legal parental responsibility because you changed your mind."

The decision comes after months of disagreement between the former couple over who should be financially responsible for their child since he was born. 

Last September, in an interview with Wendy Williams on "The Wendy Williams Show," Shepherd called the drama surrounding her custody battle with Sally "painful."

"We can't say anything about that. I have a lot of lawyers and I'm in court right now and it's very public and it's very painful," Shepherd told the show's audience. "You know for me, I'm not Tori and Dean, I don't get paid to talk about my life, so when people tweet me I always say go to Wendy, she knows what's going on. You can ask Wendy about my life."