The Federation doesn't mind letting Ji Rongxinyue grant gifts to those apes who have mastered the Empire's technology, because the Federation doesn't know that the true form of Star Moon is on Imperial Star. So, in their view, Ji Rongxinyue is incapable of obtaining the 'source code' from the apes; only they can do so.
When the first batch of apes and monkeys from the Empire's rebellion arrived at the Transition Base, which was completely under the Federation's control, ready to start receiving gifts, the Transition Gate within the base leading to the Alien Planet was also closed.
Star Moon was confirmed to have returned to the Alien Planet and lost contact with Imperial Star.
Thus, the Federation no longer worried about Star Moon seizing the 'source code.' The reason they provided was for Star Moon's safety, which in turn represented the safety of Ji Rongxinyue and the Federation. This reason was very legitimate and irrefutable from any angle.
