A Regularization Perspective On Spectral Sparsification