The following from the universal Catechism of the Catholic Church, Second Edition provides excellent approaches to use when babies and unborn babies die before receiving the Sacrament of Baptism.
**CCC 1261 **As regards children who have died without Baptism, the Church can only entrust them to the mercy of God, as she does in her funeral rites for them. Indeed, the great mercy of God who desires that all men should be saved, and Jesus’ tenderness toward children which caused him to say: “Let the children come to me, do not hinder them,” allow us to hope that there is a way of salvation for children who have died without Baptism. All the more urgent is the Church’s call not to prevent little children coming to Christ through the gift of holy Baptism.
**CCC 1260 **“Since Christ died for all, and since all men are in fact called to one and the same destiny, which is divine, we must hold that the Holy Spirit offers to all the possibility of being made partakers, in a way known to God, of the Paschal mystery.”
And this important statement from CCC 1257
CCC 1257, last sentence.
God has bound salvation to the sacrament of Baptism, but he himself is not bound by his sacraments.