Essential work to repair a key Metrolink tunnel, securing its long-term operation and safety has been completed.