President Donald Trump pledged not to attack Iran prior to the 2026 congressional midterm elections