A rare blood transfusion while in the womb saved a baby's life when his mum was 16 weeks pregnant.