Five-year-old Liam Ramos and his father have been released from a US immigration detention facility.