US judge blocks Donald Trumps effort to halt refugee resettlement programme