They finished the work.

Literal

They [topic-は] work [object-を] finished [completely-てしまった].

終えてしまった uses ~てしまう to mark completion — here without regret, simply indicating the work is fully done.