President has the ability to deny re-entry if that individual is returning from one of the 7 countries on the list. Why? Because they haven't cooperated with enhanced screening like the other countries left off the list (Saudi Arabia, Egypt, etc.)
"Under U.S. Code, the president does have the statutory authority to keep anyone out of the country, for any reason he thinks best. Per 8 USC §1182
“Whenever the President finds that the entry of any aliens or of any class of aliens into the United States would be detrimental to the interests of the United States, he may by proclamation, and for such period as he shall deem necessary, suspend the entry of all aliens or any class of aliens as immigrants or nonimmigrants, or impose on the entry of aliens any restrictions he may deem to be appropriate.”
http://truthinmedia.com/reality-check-trump-right-legal-authority-ban-muslim-immigrants-pres-candidates-hypocritical-muslims/