An NHS trust has admitted it failed to provide safe care and treatment to three babies who died within days of their births.