Updated

New Zealand lawmakers have passed anti-terrorism measures that increase domestic surveillance powers and attempt to stop nationals from traveling abroad to fight for groups like Islamic State.

Lawmakers voted in favor of the bill late Tuesday by 94 votes to 27.

Prime Minister John Key welcomed the result, saying in a statement the government was enhancing domestic security as well as responding to the rapidly evolving threat posed by New Zealanders fighting abroad.

The law will allow the nation's domestic spy agency to carry out surveillance for up to 24 hours without a warrant. It also increases the amount of time the government can cancel a passport on national security grounds from one year to three years.

The law was fast-tracked through Parliament and is scheduled to expire in 2017.