A U.S. judge dismissed a lawsuit brought by the Mexican government against gun makers who they say fuel the flow of guns into Mexico.