A grant provided to a student under paragraph (1) shall not be considered in determining that student’s need for grant or work assistance under this subchapter and part
C of subchapter
I of chapter
34 of title
42, except that in no case shall the total amount of student financial assistance awarded to a student under this subchapter exceed that student’s cost of attendance, as defined in section
1087ll of this title.