Structure-Preserving Finite Difference Methods For Linearly Damped Differential Equations