Law enforcement often employs archaeologists for that very purpose. My professor in Uni for example would go help them out whenever they got a call about a body being found because there just weren't enough murders in my part of the world to justify having someone full time.
The skill-sets are virtually identical, the bones are just fresher. Reading a crime scene and reading a archaeological site are basically kissing cousins.
At the core it's about social contract, and despite all of it's flaws i think that even the countries in the imperial core have pretty ethical policies around (most) human remains, this is one of the least controversial areas of policy
Unfortunately the change is pretty recent, and all the grave robberies were grandfathered in, so don't ask for your indigenous grandfather's remains, it was before the legislation
Well, a court ordered exhumanitions of a murder victim is not grave robbing, so your example in the 2nd paragraph just makes the point that there are in fact more categories than "grave robbing" and "archeology".
And yeah, governments often definite who owns what (since in natural terms, plenty of things such as land cannot be possessed) and hence directly or indirectly what is robbery.
(Which brings the interesting question of "who owns the grave" so that taking from it is robbery).