He only said the baby was imperfectly formed, handicapped, not that the child would be stillborn or had died.
From the
Catechism of the Catholic Church, official teaching of the Church, regarding the Fifth Commandment:
vatican.va/archive/ccc_css/archive/catechism/p3s2c2a5.htm
a couple of excerpts
Unfortunately for you, sadly, we don’t have the right to kill those unborn babies who are as yet unborn. I’m sure it was a distressing and emotional time…but these children also are valuable. I am sad for the trauma and distress you experienced, but had you and your wife been unable to raise your child, there are others who will in the circumstance. My sister has five natural children but adopted two handicapped children, one quite severely so, because the families couldn’t face rasing them, and one of my brothers who had thee natural children, adopted three handicapped childre, one very severe, and have raised them as valuable persons in a loving household.
You need to judge your past experience in light of your conscience at the time, but would beneficially speak with a priest, e.g. in Confession
Intentional homicide
2268 The fifth commandment forbids
direct and intentional killing as gravely sinful. The murderer and those who cooperate voluntarily in murder commit a sin that cries out to heaven for vengeance.69
Infanticide,70 fratricide, parricide, and the murder of a spouse are especially grave crimes by reason of the natural bonds which they break. Concern for eugenics or public health cannot justify any murder, even if commanded by public authority.
Abortion
2270 Human life must be respected and protected absolutely from the moment of conception. From the first moment of his existence, a human being must be recognized as having the rights of a person - among which is the inviolable right of every innocent being to life.72
Before I formed you in the womb I knew you, and before you were born I consecrated you.73 My frame was not hidden from you, when I was being made in secret, intricately wrought in the depths of the earth.74
2271 Since the first century the Church has affirmed the moral evil of every procured abortion. This teaching has not changed and remains unchangeable. Direct abortion, that is to say, abortion willed either as an end or a means, is gravely contrary to the moral law:
You shall not kill the embryo by abortion and shall not cause the newborn to perish.75 God, the Lord of life, has entrusted to men the noble mission of safeguarding life, and men must carry it out in a manner worthy of themselves. Life must be protected with the utmost care from the moment of conception: abortion and infanticide are abominable crimes.76
2272 Formal cooperation in an abortion constitutes a grave offense. The Church attaches the canonical penalty of excommunication to this crime against human life. "A person who procures a completed abortion incurs excommunication
latae sententiae,"77 "by the very commission of the offense,"78 and subject to the conditions provided by Canon Law.79 The Church does not thereby intend to restrict the scope of mercy. Rather, she makes clear the gravity of the crime committed, the irreparable harm done to the innocent who is put to death, as well as to the parents and the whole of society.
2273 The inalienable right to life of every innocent human individual is a
constitutive element of a civil society and its legislation:
"The inalienable rights of the person must be recognized and respected by civil society and the political authority. These human rights depend neither on single individuals nor on parents; nor do they represent a concession made by society and the state; they belong to human nature and are inherent in the person by virtue of the creative act from which the person took his origin. Among such fundamental rights one should mention in this regard every human being’s right to life and physical integrity from the moment of conception until death."80
"The moment a positive law deprives a category of human beings of the protection which civil legislation ought to accord them, the state is denying the equality of all before the law. When the state does not place its power at the service of the rights of each citizen, and in particular of the more vulnerable, the very foundations of a state based on law are undermined. . . . As a consequence of the respect and protection which must be ensured for the unborn child from the moment of conception, the law must provide appropriate penal sanctions for every deliberate violation of the child’s rights."81