A man accused of stabbing his wife to death as she pushed their baby in a pram has pleaded guilty to her manslaughter.