Have you been to a gas pump or grocery store lately? None of that stuff is “cheap”. I think what you are getting at is that for many (the not quite 47%) it is being paid for fully or subsidized by the labor of others (Mainly Republicans and other suckers like us).
The difference in the fantasy Star Trek world is that with replicators, etc., we wouldn’t be paying for the food, shelter, clothing, of the “47%” as that stuff would actually be virtually free...as opposed to being “free” only in the sense that someone else is paying the bill.
That said, most humans tend to take the path of least resistance, so if we all had the option of “bettering ourselves and humanity” or lying around eating replicated cheesecake all day, most would probably choose the latter.
I’m sure it’s easy to live well when a society can, in effect, chew up entire planets as energy resources.
...anyone ever consider where dilithium crystals come from? and what the total volume in use over time by the Federation is? Age of the universe for sufficient dilithium mine to form, a couple centuries of star travel to use it all up. Stop dilithium drilling now!