Isle of Wight line’s future secured with £26m investment