The former CFMEU boss’ appearance is a challenge to both federal and state governments as they attempt to reshape the troubled union.