The general welfare clause does not mean “whatever they want.” But that’s how most people treat it today.
James Madison called this notion “absurd.”
For More Information
General Welfare Is Not a Blank Check
Thomas Jefferson Rejects the Power of Congress to “Do Whatever Evil They Please”