; or (III) protection of facilities pursuant to section 1315(a) of title 40, United States Code; (ii) missions authorized to be performed by the Department of Justice, consistent with governing statutes, regulations, and orders issued by the Attorney General, pertaining to— (I) personal protection operations by— (aa) the Federal Bureau of Investigation as specified in section 533 of title 28, United States Code; and (bb) the United States Marshals Service of Federal jurists, court officers, witnesses, and other threatened persons in the interests of justice, as specified in section 566(e)(1)(A) of title 28, United States Code; (II) protection of penal, detention, and correctional facilities and operations conducted by the Federal Bureau of Prisons; or (III) protection of the buildings and grounds leased, owned, or operated by or for the Department of Justice, and the provision of security for Federal courts, as specified in section 566(a) of title 28, United States Code; (iii) missions authorized to be performed by the Department of Homeland Security or the Department of Justice, acting together or separately, consistent with governing statutes, regulations, and orders issued by the Secretary or the Attorney General, respectively, pertaining to— (I) protection of a National Special Security Event and Special Event Assessment Rating event; (II) the provision of support to State, local, territorial, or tribal law enforcement, upon request of the chief executive officer of the State or territory, to ensure protection of people and property at mass gatherings, that is limited to a specified timeframe and location, within available resources, and without delegating any authority under this section to State, local, territorial, or tribal law enforcement; or (III) protection of an active Federal law enforcement investigation, emergency response, or security function, that is limited to a specified timeframe and location