America violated international law many times, from well before. Vietnam, Iraq, Afghanistan, Abu Ghraib, etc etc etc
But when talking about international law in this instance, America started the aggression, which was a breach of International Law itself, so why should Iran abide by it?