What specifically gives the U.S. government authority to tax incomes to pay for health programs like Medicare?

The president leads the military and is the chief executive.
Congress represents people in all 50 states.
The 16th Amendment gives the authority to tax income.
The courts are supposed to support the public good in these matters.