I think "that" fits better.
The second 'so' is understood.Care was taken so that the child was not unduly agitated, and (so) that he or she was protected from harm.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: