She will have to defeat Labour colleagues to win the chairmanship