Hmm... Hubble has/had many applications, but of course those are ATM more theorical than practical. Hubble serve primairly to verify the accuracy of theories in astrophysics. I'm no true specialist, but Hubble served to calculate the spacial curve, index habitable planets, observe phenomena such as black holes (leading to universes formation theories and the new cords physics), galaxies "collisions", the spacial expansion, the (relative) youth of the universe and so on and so on. It served even in quantic and subatomic physics I believe. At this moment it can verify proposed topologies for the universe (and indirectly answer the question if the universe is finite or not). And i'm forgetting many things here.
A thing to note is that even without further maintenance, the HST will be functionning normaly for the next 2-3 years. Its replacement will be able to explore entirely new spectrums.
Edit: I forgot of course planetary/asteroids/stars/solar systems formations, evolutions and collisions, and all those things that helps us understand our solar system better.