Tehran's U.N. ambassador said the use of AI in the war violates U.S. obligations under international law.