The former prime minister praised the rise of “teal” independents in previously Liberal seats, including his own.