The Ori would win even if you fought then with a planet. The Ori are magic ascended beings and have many funky powers. Ascended beings can individually defend an entire planet from assault from space, they can wipe out an entire civilisation and many other funky powers. In power terms they are somewhat similar to the Q, the Feds wouldn't stand a chance.
Against the Followers of Ori the Federation would have trouble due to their faster starships. Their ships are also heavily shielded. They are commanded by men/women with magic powers as well. The Priors could possibly take out a Galaxy class on their own. They also have the resources of an entire galaxy to face the Federation, they also convert others to their cause to bolster their numbers and powers.
The Wraith on the other hand have vast numbers but their ships aren't shielded. Nukes can mess them up so photon torpedoes would mess them up. In the end it they might be simply able to overwhelm the Federation with numbers like their did the more advanced Ancients.
Star Wars - the resources of an entire galaxy would beat the Federation with just pure numbers. Not going to go into the lasers argument as that is really bases on your own personal opinion.
Never really watched Andromeda but didn't the old empire in that span 3 galaxies? Numbers again.