Homeland Security documents, however, revealed an internal debate over its role in monitoring the Occupy movement, and the agency apparently refrained from wholesale surveillance and infiltration because of First Amendment concerns.