If you research “Truce Amongst Rogues” before you get to the Occupation planet, guess what? The Occupation planet and its guards become your friends and you are unable to take control of the planet.
This research should not ally you with the guardians of the occupation planet.