I don't have any personal experience with this but here's what I've read -
"Animal studies have shown that morphine use during pregnancy might be associated with abnormalities. In humans, data show no evidence of malformative or foetotoxic effects of the drug. High doses administered at the end of pregnancy, even for brief periods of treatment, can cause respiratory depression in the newborn. Naloxone should be available to reverse possible respiratory failure in the newborn.
Chronic consumption of morphine by the mother during the last three months of pregnancy, regardless of the dose, can produce a withdrawal syndrome in the newborn characterized by irritability, vomiting, convulsions and increased lethality.
Therefore it is not advisable to use morphine during pregnancy except when no alternative pain treatments are available, taking into account the benefit for the mother and the potential risk for the foetus.
In the event of occasional consumption of high doses, chronic treatment or addition during late pregnancy, neonatal monitoring is recommended in order to prevent the risks of respiratory depression or withdrawal symptoms in the newborn.
Morphine is excreted in breast milk and breast-feeding is not recommended when receiving this medication. Withdrawal symptoms have been observed in breast-feeding infants when maternal administration of morphine has been stopped."
It seems it's totally fine in the quantities you were given over a short period of time, especially in your first trimester. I would not worry, your doctors knew you were pregnant and therefore the doses you were given would have been appropriate. Plus, as long as scans and everything else is looking good I think it's safe to just rest easy that everything is fine. Certainly the studies into morphine use would indicate that even prolonged use of this drug does not have long lasting effects on the baby such as birth defects or other long term health problems and you definitely did not have nearly enough to fall under this category anyway. Try not to worry!