The Ninth ruling was based on the fact that Vista holders have a right to due process, even though they are not citizens. This is a long standing constitution interpretation. They received no notice and had no defined legal way to appeal the action. The court did not challenge the president's authority to regulate immigration. Had Trump given notice as well as specified a method of appeal to Visa holders. The court may have ruled in his favor or at least it wouldn't have been a unanimous defeat. The court didn't seem interested in the religious aspect. Had Obama issued this order, which surely he would not have, he would have seen the constitutional problem immediately. Apparently Trump needs to hire some constitutional lawyers that know their stuff.
Let's break it down...
Whenever the President
(that's Trump)
finds that the entry of any aliens
(people who are not citizens)
or of any class of aliens
(any kind or type of non-citizens)
into the United States
(the sovereign nation of the US)
would be detrimental to the interests of the United States,
(pose a risk)
he may by proclamation,
(executive order)
and for such period as he shall deem necessary,
(He, not the courts or congress)
suspend the entry of all aliens or any class of aliens
(ban, hold, delay, detain, etc.)
as immigrants or nonimmigrants,
(doesn't matter if they are immigrants or not)
or impose on the entry of aliens any restrictions he may deem to be appropriate.
(HE can ******* do pretty much any damn thing HE deems appropriate.)
This is not a visa requirement. It has nothing to do with policies for issuing visas.