if you read the ruling, they were kinda pissed that Trump said they(Court) had no standing and they spent a lot of words on it.
They gave them standing because u dub paid for three visas, they also gave them irreparable harm on that too.