Your citation falls in the first category. I’m well aware that such laws do exist, and I alluded to some of them in my comment (e.g. National Security Letters).
But a law that allowing the government to oblige Apple to lie about whether they can access iCloud, as you said exists, would fall in the second category. This would go far beyond simply prohibiting a disclosure.
Can you identify any US law in the second category? Not only don’t I believe that such a law exists, other more ordinary laws like the FTC Act make many such lies illegal in the commercial context.