Policy experts say President Trump’s emphasis on loyalty over dissent, his confidence in military successes, and Iran’s own weakness were likely important factors in his decision to attack Iran.