Mr. Regan informed agency employees that he would leave before the formal end of the Biden term.