The dismissal ended an unprecedented case that had created a rift within the Justice Department.