It has been dubbed an “historic win” for Labor in the state election with Roger Cook securing his first election as premier.