Confirmation comes after PM Keir Starmer declined to say if she would keep her job for whole of this parliament