The move marked Trump’s clearest exertion yet of personal control over the country’s federal law enforcement apparatus.