The Prime Directive in principle, from my understanding, was a concept that would make the Federation as seen in TNG seem "enlightened". It postulated that the Federation should not interfere with any species not capable or mature to understand the realities known to warp capable species.
In practice, it was a cop out in practically every episode of TNG to save money because "nothing needed to be done" about any situations they ran into, therefore no budget was needed.