Under an executive order, Trump created a nongovernment agency called DOGE that he said would “slash excess regulations, cut wasteful expenditures” and restructure federal agencies.