The girl, who died in May from septic shock, had been temporarily taken into protective custody twice between 2022 and 2023.