As Jon Poker say, its not possible to analyse a hand like this without knowing the size of the blinds and antes. In this case the players in the blinds were the effective stacks, and their stacks were roughly equal. If they had around 15BB or less, then this is completely fine and standard.
Given that its on the bubble, and losing would be much worse for them than you, maybe you can even shove a little deeper like up to 20 BB, because they should fold a ton in this spot. But with anything deeper than 20BB, you should just make a standard raise, because your risk/reward gets to bad.
So assuming their stacks were 20BB or less, then this was completely fine, and it does not matter, that one of them woke up with AA. This is baked into the math, and even assuming, they call with 88, which some players might not do on the bubble, each of them only has a bigger pocket pair around 3,5% of the time. So this was just unlucky, and the result can not be used to evaluate, if it was a good play or not.
__________________
|