Federal law enforcement agencies have lost thousands of employees as the administration reshapes priorities and reduces workforce size.