The techniques and tooling can be fit for both purposes but the telescope you build to look at something 250km away at high resolution and illuminated by the sun and the one you build to look at galaxies thousands of light years away that are fainter than can be seen with the naked eye are very very different.
Hubble's optics also weren't easy to produce and notoriously were faulty which had to be later corrected in orbit with a Shuttle mission. The bid being lower than expected could just as easily be explained by the contractor massively under bidding to win the contract. I've never heard anyone claim the Perkin-Elmer also made the optics for the KH series before now. Its not outside the realm of possibility but unless you have some compelling proof then I have no reason to believe that. I think the fact they screwed up indicates they probably weren't because if they had done the optics for the KH-11 series then they would have been well practiced at making mirrors that size by the time Hubble was built.
It's a little odd how people re-tell that story, but ok.