Plans to close a 'dangerous' public footpath that crosses a railway line where trains reach speeds of 100mph have been rejected.