The New York Police Department is defending its use of undercover officers to prevent terrorism attacks, saying it follows the Constitution regardless of what civil rights lawyers say about its surveillance of the Muslim community.

Police spokesman Paul Browne commented in a statement Monday. It came after civil rights lawyers claimed in court papers that the police department had resumed now-banned tactics it used against anti-war demonstrators in the 1960s and 1970s.