It’s the first Latin American country to pass such a law, following nations like Australia, Canada and New Zealand.