The defendant was brought before the judge.

Literal

Defendant [topic-は] judge [possessive-の] before [to-に] was-taken.

裁判官の前に連れていかれた uses the passive of 連れていく ('to take someone'). The が-less passive puts the defendant as the topic of the action done to them.