; and (6) certify that the Governor of the State or a civilian law enforcement official of the State designated by the Governor has determined that any activities included in the plan that are carried out in conjunction with Federal law enforcement agencies serve a State law enforcement purpose. (d) Examination of plan Before funds are provided to the Governor of a State under this section and before members of the National Guard of that State are ordered to full-time National Guard duty as authorized in subsection (b), the Secretary of Defense shall, in consultation with the Secretary of Homeland Security, examine the adequacy of the plan submitted by the Governor under subsection (c). The plan as approved by the Secretary of Defense may provide for the use of personnel and equipment of the National Guard of that State to assist United States Customs and Border Protection in the transportation of aliens who have violated a Federal immigration law. (e) End strength limitation (1) In general Except as provided in paragraphs (2) and (3), at the end of a fiscal year there may not be more than 10,000 members of the National Guard— (A) on full-time National Guard duty under section 502(f) of this title to perform border control activities pursuant to an order to duty; or (B) on duty under State authority to perform border control activities pursuant to an order to duty with State pay and allowances being reimbursed with funds provided under subsection (a)(1). (2) Exception The Secretary of Defense may increase the end strength authorized under paragraph (1) if the Secretary determines that such an increase is necessary in the national security interests of the United States. (3) Certain exclusion National Guard personnel deployed pursuant to paragraph (1) shall not be included in the calculation to determine compliance with— (A) limits on end strength