; and (2) by striking subsection (e) and inserting the following: (e) Release upon an order granting relief from removal In the case of an alien with respect to whom an immigration judge has entered an order terminating removal proceedings or an order providing for relief from removal, including an order granting asylum, or providing for withholding, deferral, or cancellation of removal, which order is pending appeal, the Secretary of Homeland Security shall immediately release the alien upon entry of the order, and may impose only reasonable conditions on the alien’s release from custody. (f) Community-Based case management program (1) In general The Secretary of Homeland Security shall establish, outside of the purview of U.S. Immigration and Customs Enforcement, a community-based case management program that— (A) provides alternatives to detaining aliens; (B) offers a continuum of community-based support options and services, including— (i) case management; and (ii) access to— (I) social services; (II) medical and mental health services; (III) housing; (IV) transportation; and (V) legal services