The NYPD arrested dozens of people as officers forcibly removed students and some outsiders who had barricaded themselves in an academic building.