Solving Ill-Posed Linear Systems With Constraints on Statistical Moments