Ocasio-Cortez had previously condemned U.S. strikes on Iran as "disastrous" and said they were "grounds for impeachment."