Mexico’s president Claudia Sheinbaum said that the United States had agreed to take action on preventing guns from flowing into her country.