NSW Labor has scored its lowest primary vote since Gladys Berejiklian was premier.