She was glad her husband came back safely.

Literal

She [topic-は] husband [subject-が] safely returned thing [object-を] was-glad.

無事に ('safely/without incident') is a common adverb. ことを喜んだ uses the nominalizer こと to make the embedded clause the object of 喜ぶ ('to be glad').