Having an AI tank a pirate raid usually ends in two ways:
1. The AI loses all of its planetary structures (and possibly the planet itself to bombing) and the surviving pirate ships return to the nearest base, bolstering their numbers at the base, or
2. The AI destroys every single pirate ship that was in the raid.
It looks like result 1 happened a lot for a few hundred ships to accumulate at the pirate base. As games go on, and pirate raids increase in severity, the proportion of Corsairs (the AI Heavy Cruiser) and Cutthroats increase. I would bet that the pirate base by then would be swarming with Corsairs, Cutthroats, a handful of Reapers (their flak) and the odd Rogue (light frigate) and Pillager (planet bomber).
Corsairs die easily to bombers, Cutthroats have the same armor type as LRFs, so fighters will tear those apart. Simply put, bring carriers and keep the pirate ships off of them with a well-rounded fleet (Subverters with Distortion Field make it easier by shutting down groups of pirates for some time).
Besides, 90 Enforcers?!? That's 1080 supply's worth. If you ran into an AI with bomber-laden carriers, your Enforcers would be converted to scrap fairly quickly.