TRENTON - The New Jersey Assembly has approved a bill requiring out-of-state law enforcement agencies to notify New Jersey officials before conducting any counterterrorism surveillance in the state.

The measure was introduced in response to revelations of spying on Muslims in New Jersey by the New York Police Department.

The legislation allows prosecutors to get an injunction blocking an agency from conducting surveillance if it hasn't complied with the notification requirements.

New York police denied any wrongdoing. New Jersey Attorney General Jeffrey Chiesa also found the NYPD broke no state laws.

The notification bill passed on a 76-3 vote. It is yet to be considered by the Senate.

AP wire services contributed to this report.