Except as provided in subparagraph (B), if a nonimmigrant holding an A–3 visa or a G–5 visa working in the United States files a civil action under section
1595 of title
18 or a civil action regarding a violation of any of the terms contained in the contract or violation of any other Federal, State, or local law in the United States governing the terms and conditions of employment of the nonimmigrant that are associated with acts covered by such section, the Attorney General and the Secretary of Homeland Security shall permit the nonimmigrant to remain legally in the United States for time sufficient to fully and effectively participate in all legal proceedings related to such action.