It found that the current and former justice ministers acted “without a proper legal basis”.