Three parties finalised a coalition without the far-right after talks dragged on for five months post-election.