Judges blocked Trump's bid to end a programme that shields hundreds of thousands of young immigrants from deportation.