while the prime directive prevents interference in the cultures, that doesn't stop them from trading common, non military, non classified technology with allies. replicators fall into this category. so Los Angeles can purchase replicator technology with the idea to reduce poverty, homelessness...