The prime minister has used an alleged attack on independent MP Helen Haines to bring global allies' attention to growing threats on democracy.