Former Australia PM 'undermined' responsible government with secret appointments -solicitor general