In the first DL campaign, there are only two uncolonized planets. In the second, it doesn't get much better-there are a total of 4, and you don't have any allies. The third mission technically has 8 uncolonized planets, but as 4 of them are Class 0, we won't count them. Your ally returns to "help" you, though.
My theory is the reason your ally is so far ahead of you is because they've taken both of the available colonizable planets in the first mission, for a total of three, and left you with your one.
You might want to try colonizing-and fast-in the future. This is actually one reason why the campaign is a bad place to try to learn the game.
You might also want to consider lowering your taxes to keep approval (on a planet by planet basis) at 100% to get double population growth, until it's at a comfortable level. If you feel you can't afford to do that, keeping approval above 75% for 1.25x growth is also not a bad idea.
And, in the campaigns, at least for the first few missions, you don't really need factories initially. Every ship you'll need you should be able to rush buy, even if it's on lease, so just concentrate on labs for research.
Just my thoughts on what you've said-as I haven't actually seen you play, I can't be certain I'm right, or that any of this is helpful.