I think it will love the new soil and moisture.
It will always continue to get taller, that's what trees do. As the trunk and branches lignify (turn woody,) those areas no longer hold foliage. Leggy refers to the distance between nodes. I'm not sure if your plant is leggy, or just older, from the pics.
You can trim your plant if you want to keep it short enough to get plenty of light on all of the foliage. If it was mine, I would cut the longest couple stems where they emerge from the trunk. Since you just repotted, it should be easy to push the cut-off tops into the pot, all the way to to the bottom. They will (theoretically, no guarantees) take root and keep going.
When you start to see some new branches form on the trunk, then you could cut the rest of the original branches. This will be the least stressful way to do it, over time, so your plant doesn't have a time without any foliage, and so you don't have to look at a bare stick.
A year or two from now, your plant might look more like this:
Or you could use a separate pot for the trimmings if you want more than 1 pot of this plant.
Beware that Ficus plants have latex sap inside that leaks out when the plant is cut. This sap can cause a rash like poison ivy for some people who have a sensitivity to it. It will stain the trunk of the tree (and possibly your floor, furniture) so if you do decide to cut it, be prepared by spreading some newspaper or old towel around the plant. Spritzing the cut with a spray bottle of water will dilute it so it doesn't stain the trunk and helps the wound to stop oozing sap. If you do get some on your skin, wash it right away with cool water and soap.