If you are a EU citizen and you get the "permanent residence card" (not just residence card, you need the one that says permanent on it) before giving birth, then your baby will be British and you can apply for a passport for the baby. To get the PR card now takes about 1-2 months and you can apply...