Under New York law, the husband of a woman who gives birth during their marriage is automatically presumed to be the child’s father.

But some transgender dads were worried that their status as legal parents might not be recognized if they traveled or moved, so they sought to adopt their children, Judicial Hearing Officer Richard Ross wrote in a Kings County Family Court ruling approving the adoptions Thursday.