The lawyer advised his client to take legal action.

Literal

Lawyer [topic-は] client [to-に] legal means [obj-を] take [so that-ように] advised.

~ように勧める ('advise to do X') is the indirect-recommendation pattern, parallel in structure to ~ように言う ('tell to do X') and ~ように求める ('request to do X') — the verb at the end determines the speech act. 勧める means 'to recommend, urge, advise.' 法的手段を取る ('take legal means') is the set phrase for starting a lawsuit or using the legal system.