In court law, politicians have no say. A judicial decision, made by interpreting current laws, creates a new law. It's one of the only beautiful things left in our judicial system. Then politicians try to create new laws to nullify it.
But that's off topic. So "Which came first, laws or lawyers?" Laws did. Just like English came before translators, video games came before cheat codes, and the computer came before the instruction manual.