Australia warns of cold war-style espionage as it passes law banning covert foreign interference in politics