The apex court held that preventive detention under the National Security Act was invoked without valid legal basis, penalizing the state government.