Updated

Muslim leaders and their lawyers say a settlement of legal claims that the New York City Police Department illegally spied on Muslims empowers them to prevent future abuse.

The deal was announced Thursday by the city and the Islamic community.

Center for Constitutional Rights legal director Baher Azmy told a news conference that the agreement ensures the NYPD will act legally as an increasingly empowered Muslim community asserts its rights.

The agreement resolved a 2012 suit in Newark, New Jersey, after The Associated Press revealed how the NYPD infiltrated Muslim student groups and put informants in mosques to try to prevent terrorist attacks.

The AP reported that the effort crossed into New Jersey, where the department collected intelligence on ordinary people at mosques, restaurants and schools starting in 2002.