You're thinking of union shops, not closed shops. Union shops are nominally illegal, but in practice, many large unionized workplaces are effectively union shops, because the NLRB chooses to enforce a very narrow interpretation of the Supreme Court case that they lost.