So what meaning does it have?
Absolutely no meaning (at least to libertarians). According to Libertarians you can just disregard the phrase "general welfare" as if it were never written into the Constitution.
Pull out your pocket copy of the Constitution, and flip to Article 1 Section 8.
The Congress shall have power to lay and collect taxes, duties, imposts and excises, to pay the debts and provide for the common defense and general welfare of the United States; but all duties, imposts and excises shall be uniform throughout the United States;In other words, the Federal Government can "provide for the... general welfare of the United States," which would seem to legitimize Social Security and other welfare state programs.
....
To make all laws which shall be necessary and proper for carrying into execution the foregoing powers, and all other powers vested by this Constitution in the government of the United States, or in any department or officer thereof.