A federal judge has allowed Native American tribes to join another lawsuit challenging the Dakota Access pipeline as a threat to historic sites and “environmental justice,” but he refused to allow the new parties to name President Donald Trump as a defendant in the case.