According to recently declassified CIA documents the US had firm evidence of Iraqi chemical attacks beginning in 1983.
At the time, Iran was publicly alleging that illegal chemical attacks were carried out on its forces, and was building a case to present to the United Nations.