The Fed does QE by buying treasuries mostly which means the money goes to the govt first and then gets spent on all the shit the govt does.
Discussion
This may not be entirely accurate actually. They may be buying the bonds on the open market which means they are buying them from existing bond holders, not newly issued bonds direct from the Treasury.
