Louis DeJoy said he plans to step down after a nearly five-year tenure marked by the coronavirus pandemic, surges in mail-in election ballots and efforts to stem losses through cost and service cuts.