Katy Gallagher took on Campbell Newman at COAG, Julia Gillard memoir reveals