The decision ends an investigation, one of several undertaken by the Justice Department into President Donald Trump’s perceived adversaries.