The chief judge for the U.S. District Court for the District of Massachusetts has dismissed Mexico's case against more than a half-dozen gunmakers, saying the government's claims for damages are either barred by federal law or fail for other reasons.