Yes globo homo liberalism is not the Federation first of all. But even if it was the laws of physics in Star Trek are diffrent so that works for them.
Again because of their technology the Federation works, also in actuality the Federation is not like modern liberals at all because liberals are...