Walking campaigners welcome the move, which the government says will help prevent paths from being lost.