A judge sentenced a woman to 22 years in prison for shooting and critically wounding her husband and then telling deputies the couple was shot by an intruder near Wonder Lake.