Train drivers' union warns government over anti-strike law