; 110 Stat. 1321–54) shall not be construed to prevent a recipient of funds under title X of the Economic Opportunity Act of 1964 ( 42 U.S.C. 2996 et seq. ) from providing legal assistance directly related to an application for status under section 245B of the Immigration and Nationality Act, as added by this Act, or to an alien granted such status. (f) Technical and conforming amendment The table of contents for the Immigration and Nationality Act ( 8 U.S.C. 1101 et seq. ) is amended by inserting after the item relating to section 245A the following: Sec. 245B. Adjustment of status for essential workers. . 3. Restoring fairness to adjudications (a) Waiver of grounds of inadmissibility Section 212 of the Immigration and Nationality Act ( 8 U.S.C. 1182 ) is amended by inserting after subsection (b) the following: (c) Humanitarian, family unity, and public interest waiver (1) In general Notwithstanding any other provision of law, except section 245B(c)(1)(B), the Secretary of Homeland Security or the Attorney General may waive the operation of any 1 or more grounds of inadmissibility under this section (excluding inadmissibility under subsection (a)(3)) for any purpose, including eligibility for relief from removal— (A) for humanitarian purposes; (B) to ensure family unity; or (C) if a waiver is otherwise in the public interest. (2) Considerations In making a determination under paragraph (1), the Secretary of Homeland Security or the Attorney General shall consider all mitigating and aggravating factors, including— (A) the severity of the underlying circumstances, conduct, or violation; (B) the duration of the alien’s residence in the United States; (C) evidence of rehabilitation, if applicable