The lawyer asked the judge to consider the defendants' ages.

Literal

Lawyer [topic-は] judge [to-に] defendants [gen-の] age [obj-を] consider [so that-ように] requested.

弁護士 is 'lawyer' generally, while the closely related 弁護人 is specifically 'defense counsel' — the role one plays in a criminal trial. The lawyer here is acting as defense counsel, so both words could apply, but 弁護士 emphasizes the professional rather than the in-court role. ~ように求める is the standard frame for indirect formal requests.