They accomplished the task with ease.

Literal

They [topic-は] easily task [object-を] accomplished.

楽に means 'easily, with ease.' 任務を成し遂げた means 'accomplished the mission/task' — 成し遂げる is a formal compound verb.