"whenever any person or organ of state with a sufficient interest appeals or applies directly to the court to confirm or vary an order of constitutional invalidity by a court as contemplated in section d of the constitution the court shall deal with the matter in accordance with the rules"