You're talking about what has been called a "negative income tax"; the idea has a long history, but was popularized in the USA by Milton Friedman. A form of this was implemented as the "earned income tax credit", but only as a supplement to traditional welfare programs.
http://en.wikipedia.org/wiki/Negative_income_tax