A US judge has temporarily blocked the Donald Trump administration from detaining British anti-disinformation campaigner Imran Ahmed.