I don’t think this was a bad move. It takes on a whole different flavor when you consIder that the whole purpose of the legal moves by the Trump team is to force a battle to diminish the tyranny of the Federal courts. They were smart to pick a battle where most Americans are on Trump’s side.
I'm pretty sure the President's objective in issuing the travel ban, was to protect the American people, and not to provoke a showdown with the left wingers in the judiciary.
Now that they've been 'triggered' by his wholly legal, constitutional actions, he's made a strategic blunder by throwing it back into their ballcourt to render further judgements against him.
The better response would have been to ignore the judge's illegal ruling, and hold his position in space. Instead, he's now asking the judicial branch for permission to be president.