You have it upside down.
The federal government may only legislate on subjects authorized by Art. 1, Sec 8 of the Constitution. Everything else is forbidden to the federal government and left to the States, or to the people.
/johnny
So basically you’re agreeing with me. The Feds can’t be socialist, but any state that wished to be socialist could, at least according to the Constitution.