; (bb) has been granted temporary protected status under section 244 of the Immigration and Nationality Act ( 8 U.S.C. 1254a ); or (cc) is the beneficiary of an approved petition for an immigrant visa, but has been unable to adjust status to that of an alien lawfully admitted for permanent residence pursuant to section 245 of the Immigration and Nationality Act ( 8 U.S.C. 1255 ) because a visa number has not become available or the beneficiary turned 21 years of age prior to a visa becoming available. (ii) An alien described in clause (i) who has departed the United States during the five-year period referred to in subclause (I) of that clause shall be eligible to enlist if the absence of the alien was pursuant to advance approval of travel by the Secretary of Homeland Security and within the scope of such travel authorization. . (c) Stay of removal proceedings Section 237 of the Immigration and Nationality Act ( 8 U.S.C. 1227 ) is amended by adding at the end the following: (e) If an alien described in section 504(b)(1)(D) of title 10, United States Code, who is subject to a ground of removability has served honorably in the Armed Forces, and if separated from such service, was never separated except under honorable conditions, the Secretary of Homeland Security shall grant such alien an administrative stay of removal under section 241(c)(2) until the earlier of— (1) the date on which the head of the military department (as defined in section 101 of title 10, United States Code) under which the alien served determines that the alien did not serve honorably in active-duty status, and if separated from such service, that such separation was not under honorable conditions as required by sections 328 and 329