A baby at the centre of an asylum row in Australia has been released from hospital into community detention.