Musk’s space company had avoided much of the scrutiny, criticism, and regulatory burden that comes with going public.