Improper payments cost the government nearly a trillion dollars in four years, and three key agencies underestimated them last year.