The order, which primarily targets countries in Africa and the Middle East, revives an effort from President Trump’s first term that led to chaos and court battles.