Some legal scholars and advisers close to Trump have argued there are grounds to summon the military to combat narcotics and mass migration.