Israel's supreme court has ruled that the body of Palestinian novelist Walid Daqqa can lawfully be held as a bargaining chip by the government.