Labor confident of historic win, expected to form government with Greens