Gaban is Roger's subordinate when it's all said and done. If Garp told him hey your captain left me his kid. Why would Gaban or even Rayleigh for that matter go against his decision?
He wanted Ace to have a normal life. Scopper is still technically a wanted man. Ace chose to be a pirate anyway.