She always helped her husband whenever he was in trouble.

Literal

She [topic-は] husband [subject-が] hardship [in-に] exist time [contrast-は] always help [object-を] did.

苦境にある時はいつも — 'whenever he was in difficulty, always.' The は after 時 creates a habitual conditional.