; and (2) the Secretary of the Treasury shall have all functions relating to the United States Secret Service that any other official could by law exercise in relation to the United States Secret Service immediately before such transfer, including all such functions vested in the Secretary of Homeland Security by the Homeland Security Act of 2002 ( 6 U.S.C. 101 et seq. ) or any other law. 4. Savings provisions (a) Completed administrative actions (1) In general Any completed administrative action of the United States Secret Service shall not be affected by the enactment of this Act or the transfer of the United States Secret Service to the Department of the Treasury, but shall continue in effect according to the terms of the completed administrative action until the completed administrative action is amended, modified, superseded, terminated, set aside, or revoked in accordance with law by an officer of the United States or a court of competent jurisdiction, or by operation of law. (2) Completed administrative action defined In this subsection, the term completed administrative action includes an order, a determination, a rule, a regulation, a personnel action, a permit, an agreement, a grant, a contract, a certificate, a license, a registration, and a privilege. (b) Pending proceedings (1) In general Any pending proceeding in the United States Secret Service, including a notice of proposed rulemaking and an application for a license, permit, certificate, grant, or financial assistance, shall continue notwithstanding the enactment of this Act or the transfer of the United States Secret Service to the Department of the Treasury, unless the pending proceeding is discontinued or modified under the same terms and conditions and to the same extent that such discontinuance could have occurred if such enactment or transfer had not occurred. (2) Orders Any order issued in a proceeding described in paragraph (1), or an appeal therefrom, and any payment made pursuant to such an order, shall issue in the same manner and on