The Mexican government had sought to hold American gun manufacturers legally accountable for rampant cartel violence.