Senate passes terror law amendments after PM’s attack warning