A union representing about 250 workers at the ports had already voted to authorize a strike. Thousands more workers were expected to honor picket lines and cease work.