This translates to "She gave him all of her money." According to my Anki deck. Is the 'gli' somehow referring to 'him'?
As you can see in the VIVIT website, from Accademia della Crusca, the word "gli" in Italian is not only an article: it's also an indirect object personal pronoun.
This is the case in your sentence: "gli" is an indirect object personal pronoun, which can be masculine singular and then translated as "to him", as you can see in this table, or plural (see the answers to this question for more details) and translated as "to them", as stated in this other table.