A set of identical twins are thriving after life-saving surgery was performed on them while they were still in the womb.