I don't think this could happen without enabling legislation.
The U.S. military draft required passage of the Selective Service Act [1] Something similar would be required before Apple's coders could be forced to carry out court orders directed at Apple, the corporation. Even in these times (so far!) I think this wouldn't happen.
What kind of dystopia are we living in again?