That's the whole point of federalism/separation of powers. Our government is not supposed to be efficient. This fact might not always make sense to those obsessed with efficiency, such as as programmers, but in this case it's a feature, not a bug.
Disputes between states and the federal government take years/decades to be resolved, but I'd rather have our inefficient system over a more efficient one that is far more prone to being taken over by demagogues and those who seek ultimate power.