New York on Wednesday joined a handful of states that prohibit employers from punishing workers who decline to attend meetings at which the company expresses its views against unionizing.