Companies had time to plan for the change in the law and pivot to other industries. I'm sure some of them just went underground, though.
Facebook can't go underground because most of their customers are businesses that need govt-sanctioned legitimacy and could be forced to stop buying ads from them (not the mention the challenges of reassembling their personnel/infra outside US control).