I don't think this is an important point. There's no law allowing it.
If the "government" wanted something enough, they could get a supermajority together in congress and amend the constitution to make literally anything legal. But they haven't, in this case, done so.