India's Supreme Court has ordered the release on bail of a leading public health specialist and human-rights activist, Dr Binayak Sen.