India lawyer bailed after three-year detention on anti-terror law