Meaning : Help to readapt, as to a former state of health or good repute.
Example :
The prisoner was successfully rehabilitated.
After a year in the mental clinic, the patient is now rehabilitated.
Meaning : Reinstall politically.
Example :
Deng Xiao Ping was rehabilitated several times throughout his lifetime.
Meaning : Restore to a state of good condition or operation.