This is probably the best net outcome.
Even if the wall gets built, it sets a precedent for the POTUS to declare actual things "emergencies" like gun violence and healthcare
I brought up this exact thought on a friend's FB post about it, and that the Republicans we know should HATE that Trump went the route he did.
Also, this thing will get so tied up in legal limbo, I doubt it even gets built, or at least how Trump wants it.