Babies whose mothers underwent surgery before pregnancy have an increased risk of opioid withdrawal symptoms at birth, according to a new study.