A courtroom in downtown Cairo erupted in cheers after the judge dropped all charges against Ms. Hijazi, her Egyptian husband and all six other defendants in what human rights groups called a weak case driven by defective evidence.