The director, James M. Murray, was appointed by President Donald J. Trump in 2019 and is departing after nearly three decades with the agency.