Terry allows for:
1) The stopping of suspects when there is a reasonable, individualized suspicion the person did, is, or will commit a crime and
2) Then allows for limited searching of the same person/people for the purposes of officer safety.
Neither of those two elements appear to be present with what the cops were doing in the Bronx.
What in the article makes you say that, or are you jumping to a conclusion? The article says the officers are in or near the buildings because of the TAP program. They are invited by the building owners to look for trespassers who may be committing additional crimes.