Why would canon law prohibit the baptism of an infant that will not be raised Catholic? Give the kid a chance at least...
Council of Florence, Cantate Domino (1441): "The most Holy Roman Church firmly believes, professes and preaches that none of those existing outside the Catholic Church, not only pagans, but also Jєωs and heretics and schismatics, can have a share in life eternal; but that they will go into the "eternal fire which was prepared for the devil and his angels" (Matthew 25:41), unless before death they are joined with Her; and that so important is the unity of this ecclesiastical body that only those remaining within this unity can profit by the sacraments of the Church unto salvation, and they alone can receive an eternal recompense for their fasts, their almsgivings, their other works of Christian piety and the duties of a Christian soldier. No one, let his almsgiving be as great as it may, no one, even if he pours out his blood for the Name of Christ, can be saved, unless he remains within the bosom and the unity of the Catholic Church."
The same council also ruled that those who die in original sin, but without mortal sin, will also find punishment in hell, but unequally. "But the souls of those who depart this life in actual mortal sin, or in original sin alone, go down straightaway to hell to be punished, but with unequal pains."
The Church didn't say there was a limbo, happy place, almost heaven for unbaptized. The Catholic Church was established by Christ to give grace. One can only receive His grace if they have been baptized. So where is the harm in baptizing an infant. If they die in sin they go to the same hell as baptized Catholics. If they died without baptism they would "go down straightaway to hell to be punished."