The deal affects about 34,000 apartment building workers. The last time they had staged a walkout was in 1991.