Attorney General Jeffrey Chiesa and State Police Superintendent Col. Rick Fuentes during a press conference in Trenton in July.John Munson/ The Star-Ledger

TRENTON — The state Assembly today passed legislation to require out-of-state law enforcement agencies such as the New York Police Department to notify New Jersey authorities at least one day in advance of crossing the border to conduct counter-terrorism operations.

The bill (A2948), approved 76-3, comes in direct response to surveillance operations by the NYPD targeting Muslim businesses and mosques in in the Garden State. But its future remains uncertain as no identical legislation has been introduced in the Senate.

"No doubt we must protect our country against the threat of terrorism, but not at the expense of civil liberties," Assemblyman Charles Mainor (D-Hudson), a primary sponsor of the bill, said in a statement.

Under the bill, out-of-state agencies must notify the county prosecutor who oversees the area in which the operations are to take place. The prosecutor would then be required to report the activity to the State Police, which would then notify high-ranking state officials.

Any law enforcement officer in New Jersey that learns of operations in the state by a foreign agency, regardless of whether that agency gave notification, must tell the county prosecutor.

The bill permits the state attorney general or a county prosecutor to seek a court injunction barring counter-terrorism activity if an out-of-state agency fails to notify New Jersey officials.

Earlier this year, the Associated Press reported that the NYPD had been running an aggressive domestic intelligence operation that extended into New Jersey, targeting ethnic communities in Newark, the campus of Rutgers University and elsewhere.

The operations sparked outrage among the Muslim community, and its leaders demanded state Attorney General Jeffrey Chiesa review the situation to determine if any laws were broken. In May, Chiesa concluded there was no evidence the NYPD did anything wrong.

Chiesa said the state and NYPD reached an agreement to "strengthen the lines of communication" between New Jersey law enforcement officials and the city. That agreement called for regular meetings with the NYPD, on at least a monthly basis, to exchange counter-terrorism information.

The attorney general also issued a general directive to all state law enforcement agencies putting in place new notification protocols that will be triggered when they learn of any law enforcement activity being conducted by out-of-state policy agencies within their jurisdiction.

The attorney general also established an outreach committee with the Muslim community.