Near-Optimal Algorithms for Gaussians with Huber Contamination: Mean Estimation and Linear Regression