A council has won its case to clear an illegal storage yard on a busy road, unlocking land for new homes near Fareham.