A new law in Connecticut sets limits on turning over immigrants to federal authorities for possible deportation, making the state the first in the nation to pass such a measure, advocates said.

Connecticut authorities will honor requests by U.S. Immigration and Customs Enforcement to detain only immigrants who have felony convictions, belong to gangs, show up on terrorist watch lists, are subject to deportation orders or meet other safety risks. Democratic Gov. Dannel P. Malloy's office announced Wednesday he had signed the law, which says immigration officials will be notified of decisions on whether to detain or release people.