A council has agreed to repair a key road which has been closed for two years after a landslip damaged a supporting wall.