The laws were not. The judicial decisions that made it far more difficult to hold people against their will - which ultimately drove a lot of deinstitutionalization; the asylums were closed mostly as a response, not a cause - are effectively irrevocable.