Our laws have been replaced with judges feelings and emotions.
https://law.justia.com/codes/us/2018/title-8/chapter-12/subchapter-iii/part-i/sec-1401/
8 U.S.C. § 1401 (2018)§1401. Nationals and citizens of United States at birth
The following shall be nationals and citizens of the United States at birth: ...
(d) a person born outside of the United States and its outlying possessions of parents one of whom is a citizen of the United States who has been physically present in the United States or one of its outlying possessions for a continuous period of one year prior to the birth of such person, and the other of whom is a national, but not a citizen of the United States;
In this case, the assertion is that the child was born of the sperm of a U.S. citizen, and the donated egg of an unidentified woman, by a woman in Canada who acted as a surrogate. Assuming those assertions to be true, and the father was physically present in the United States for a continuous period of one year prior to the birth of the child, the law says the child was born with United States citizenship.
Blame the law, and the genius of the lawmakers, not the judge.
Regardless, unless any of them were on US govt assignment, I thought a child inherited the citizenship of the birth country. The parents woukd need to file naturalization papers for the baby.