New York has passed a bill requiring employers to disclose hiring timelines and whether roles are genuine openings.