iPhone maker withdraws infringement allegations in exchange for assurances that Samsung will not market the smartphone in the U.S.