Trevor Halford’s five-month stint as interim leader helped end public caucus drama, sharpen party’s opposition work