Law passed to protect critical transport firms from 'malicious actors', other disruptions