I ran across this after a discussion about what national programs are and are not constitutional according to a strict reading of the Constitution. Its an analysis of the dispute, and how it was resolved by the Supreme Court, from the Social Security Online.
In brief, the power rests on the opening sentence of Article One, Section Eight which allows for Congress to levy taxes ... and provide for the general welfare.
It's a great read.