Star Trek has vastly better sensors, shielding, weapons and science.
Sensors: they can detect the atmosphere and cargo inside a ship as well as how many individuals are in it. SW can't detect when an entire ship has docked to the hull.
Science: and then they can beam a person out of it. They can screw with any technology while transporting too.
Shielding: ISDs and Death Star can't keep fighter and the millennium falcon from running around inside their shield envelope. Federation shields give them the option to block crafting from passing.
Weapons: They made bombs that break space itself, and then apparently almost everyone agreed to ban them because its a stupidly dangerous idea.
Science 3: Genesis Device. Oh great you can destroy a planet. The Federation can create an entire solar system with a bomb.
Science 4: Federation developed a matter phasing cloak. Romulans made personal cloaks.
The only advantage the Empire has is numbers of ISDs. Even then, if the empire makes the wrong move they'll piss off the Dominion or the Borg, and the empire literally can't touch the borg.