A weakened and wounded Iran that now faces a Trump presidency will be forced to rethink its approach to security