The M27 has reopened in Hampshire 24 hours ahead of schedule after a huge infrastructure project was completed early.