The U.S. Supreme Court unanimously ruled Thursday against a lawsuit filed by Mexico that accuses seven American gun manufacturers and one wholesaler of unlawful sale practices, and arming drug dealers.

The unanimous ruling tossed out the case under U.S. laws that largely shield gunmakers from liability when their firearms are used in crime.

Mexico wanted the chance to prove in court that U.S. gunmakers aided and abetted the trafficking of hundreds of thousands of weapons into Mexico.