The Prince of Wales has paid tribute to the “unconditional care, compassion and humanity” shown by workers in the homelessness sector.