Original: He completely abandoned the original intent of his trip and for several days he devoted himself to helping with the treatment and care for the wounded.
Simplified: He abandoned his trip to see Emperor Napoleon III and spent several days helping to treat and care for the wounded.