The player who was the defender retains control of the planet and places one of their control tokens on the planet.
The active player gains control of each planet they committed ground forces to only if that planet still contains at least one of their ground forces.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.