Australia's national security proposals will criminalise journalists, says union