Supreme Court frees Imran Khan from custody