and the clamping diodes take care of the rest.
Note the clamping diode does exactly the same thing, dumps 100V into the 5V supply. However as this is just a small spike it is absorbed by the decoupling capacitor on the 5V supply. The regulator also adjusts to compensate for any resulting slight over voltage.