Federal law makes it illegal to retaliate against people for forming a union. Companies still do, and there's no law saying they have to keep hiring in that unit, but if they fire everyone they will probably lose the resulting lawsuit.