There seems to be continuing confusion over Trump's position. During his 2016 presidential campaign he called for a ban on travel from Moslem countries to the US until security had been adequately improved. This shouldn't be controversial, the US and multiple western allied countries having been repeated targets for Islamic extremists.
After election, he did ban travel from several Moslem countries where security was still or had become inadequate - Iran, Somalia, Yemen, Libya, and Syria. It shouldn't really be surprising that travel from these was cut, given their geo-political situations.
Travel bans were not aimed only at Moslem countries. They were put in place for a further 8 countries which are not Moslem states but which pose serious security risks for the US. There actually 50 Moslem-majority countries in the worlds, with Moslems being present in a minority in almost every non-Moslem country also. Travel from most Moslem countries, including 18 of the largest 20 by Moslem population, and travel by Moslems from non-Moslem countries was not affected, except by normal security precautions, which every country in the world takes anyway.