"Supported" in the sense of "not letting being conquered completely by Iran." Who was carrying out its own mass executions of non-Muslims and implementing its own cultural revolution around that time.
America definitely had some self-interest in protecting Iraq, but it's not like the alternative was clearly a better choice either.