Attacked by four agents in New York, Tan was then detained at a facility for the wrong gender