The reopening represents a rare expansion as maternity wards across Massachusetts have shuttered in recent years.