Any officer or employee, while assigned or detailed under section
2387 or
2388 of this title shall be considered, for the purpose of preserving his allowances, privileges, rights, seniority, and other benefits as such, an officer or employee of the United States Government and of the agency of the United States Government from which detailed or assigned, and he shall continue to receive compensation, allowances, and benefits from funds appropriated to that agency or made available to that agency under this chapter.