Tehran has built out its cyberattack capabilities in recent years but is expected to wield them in a way it expects wouldn’t trigger a U.S. response.