; and (II) who is— (aa) a grandparent or other relative and has legal authority to secure services for the child through an educational or healthcare consent affidavit, power of attorney, or other legal documentation; or (bb) a grandparent or other relative and has legal custody of the child or has commenced the process of seeking legal custody of the child in a court of law. ; and (3) in subparagraph (D) (as so redesignated)— (A) by redesignating clauses (i) and (ii) as subclauses (I) and (II), respectively, and indenting appropriately; (B) in the matter preceding subclause (I) (as so redesignated), by striking Except as and all that follows through (3)(H)(ii) and inserting the following: (i) In general Except as otherwise specified in clause (ii), subparagraph (C), subparagraphs (E) and (H)(ii) of paragraph (3) ; and (C) by adding at the end the following: (ii) Extension for certain children A school food authority shall extend the eligibility determination made by a local educational agency with respect to a child for a period that is 1 year longer than the period for which that determination was authorized by the local educational agency, if the child began living with a caregiver— (I) in the 12-month period preceding the date on which the covered child is enrolled in the new school; and (II) who is— (aa) a grandparent or other relative and has legal authority to secure services for the child through an educational or healthcare consent affidavit, power of attorney, or other legal documentation; or (bb) a grandparent or other relative and has legal custody of the child or has commenced the process of seeking legal custody of the child in a court of law. . 4. Expanding automatic eligibility (a) In general Section 9(b)(12)(A) of the Richard B. Russell National School Lunch Act ( 42 U.S.C. 1758(b)(12)(A) ) is amended— (1) by conforming the margins of clauses (iv) through (vii) to the margin of clause (iii); and (2) in clause (vii)— (A) in subclause (I), by striking or at the end