A major railway line has reopened after a car driven on to tracks by a suspected drink-driver was cleared away.