If the government had forced the private companies to comply, it would be the private companies who had standing to sue, not the end parties who are currently suing, I would imagine.
I think I remember seeing on the internet that was a thing that could happen. And the internet never lies, of course.