Properties of Some Weighted Sobolev Spaces and Application to Spectral Approximations