As far as I understand the system the Fed prints money which it then uses to buy bonds. Bonds are basically statements of debt meaning that the Fed receives interest from the parties it has bought the Bonds from, because of the nature of debt overall if the debt is repaid the Fed has not only recouped the money they have printed that also have made a profit. What do they do with that profit? To they buy more bonds? Give it to the treasury? Where does the printed money end up?
Fed sends its net profits to the US treasury. Fed keeps portion of the money it earns to cover its operating expenses but everything above that is necessary for it's functioning and dividends to member banks is remitted back to the treasury see the explainer by Fed St Louis here.
For example, according to ABA Banking journal the Fed net revenue in 2018 was $\$55.5$ billion, from which $\$54.9$ billion was payed directly to the US treasury. The dividend payments according the source totaled $\$714$ million, rest was all used to cover various operating costs.