They are two different issues. Even if you and your hu*****and have no status in the US, where you give birth to a child who then applies for a passport, the US goverment must issue it.