If a citizen fathers a baby with an illegal female how can the baby and mother gain citizenship?

Only way is through marriage. Child born in the US is a citizen already. Child can request residency for mother at the age of 21.