Eminent domain? The Federation doesn't rule the Ba'ku, they rule themselves. There are plenty of planets encapsulated in Federation space which contain civilizations that are not members of the Federation.
Suppose the Feds land on a planet, meet the local civilization and discover that they have ample of dilithium yet are unwilling to give it away.
Do they have to rationalize themselves to the rest of the galaxy, do you suggest that the Feds should just take it from them? Why, because they are a larger club in which more people can benefit from dilithium?
No, the appropriate thing to do is to ask them and then negotiate for a price. If the price is too high for you that is your problem, not theirs and if they are unwilling to give it away even at a high price that is still your problem and not theirs. You might have something I care deeply about but I have no right to take it forcefully from you. Strange that one has to explain something which every little kid learns in the sandbox.