The issue I had with that particular scene is not that she had force powers. She comes from a force-sensitive family, so her having latent force powers makes sense. Key word here being "latent".
What absolutely did NOT make any fucking sense is A: Leia not dying of asphyxiation when she enters the vacuum of space and B: Leia just happening to know how to use force pull without any prior training. Like, they don't even try to hand-wave it off by saying something like "Oh, she spent some time training with Luke when you weren't looking" or something.
She did spend time training with Luke when you weren’t looking. I mix up canon and legends but I’m pretty sure the same thing happens in both, more or less - she learns quite a lot of the basics from Luke until she has a vision of her son dying at the “end of her Jedi path”, and in both Legends and Canon that vision is fulfilled.