A US Federal Judge has blocked an order issued by President Trump to deny asylum to migrants crossing the southern US border illegally.