That absolutely was not what it said (although that was what Obama's action in 2001 said). This EO said if you are from one of these 7 countries, even if its dual citizenship with a country not on the list you cannot come here. That would be a ban based on national origin (also illegal), but it become one on religion by inserting an exemption clause for non-Muslims into it.