The Cabinet Office might now be forced to reveal how the Queen and Prince Charles can change inconvenient laws before they come into force