Though entirely possible, I highly doubt that your interaction with the police had anything to do with your religion. A police officer is permitted to ask you for identifying information. You are free not to answer any further questions. If an officer gives you a lawful command you are required to “obey.” If you are loitering the officer can issue you a summons and if you don’t provide your pedigree information the officer can take you into custody until s/he can verify who you are (by way of valid photo ID or fingerprints if necessary).
It is impossible to say what was on the officer's mind. Mr. Lieberman correctly pointed out some of the possible consequences of standing up for your rights. If you have the name and badge number of the officer you can consider filing a complaint. Good luck.
I have been a criminal defense attorney in New York for over 20 years. Feel free to view my website at Brooklynlaw.net or contact me either by phone at 718-208-6094 or via email at firstname.lastname@example.org. This answer is only for informational purposes and is not meant as legal advice.
We have many serious problems in the urban jungle of NYC but methinks police discrimination against Jewish people is not one of them. What makes you think you were singled out for being of the Hebrew faith?
As to the rest of your question, as colleagues correctly point out, you have to obey a lawful command by a PO and apparently you did that.
You could drop a complaint on the cop if you had his identifying info but it wouldn't go too far at the CCRB.
Consider this just a minor nuisance in the city that never sleeps but sometimes is full of creeps.
Maybe Offiicer Krupke was having a bad day, who knows? Maybe a superior officer had directed him to keep that area clear or not congested.
Subway security is, I think, on all our minds ever since 9-11.
You got hassled but it's minor, it's picayune, forget it.
Law Office Of Michael Marley
Phone 917 853 4484