A judge appointed by President Donald Trump will preside over a lawsuit challenging his order ending birthright citizenship.