The United States won a ruling on Friday in a trade dispute with Mexico, which had sought to ban imports of genetically modified corn for human consumption.