Sure, but when we pay our AWS bills, that money still goes to Amazon which is US-based, even though we servers we rent are in Frankfurt.
You can tax the "intellectual property" payments that the subsidiaries make to the USA parent, or you can pick some other criterion. Or you can just create a new sales tax for any one part of the transactions you want. It's tricky but it can be done.