Keir Starmer aims to secure legacy before leaving