A route through North Yorkshire that closed after a landslip almost two years ago will not be repaired until 2027.