Rosenstein plans to leave Justice Dept. next month