Bold move to keep Americans safe from ‘terrorists’ is basis for US travel ban for some African nations