Federal judge’s Trump gag order was a victory for democracy and 'the rule of law': analysis