Don't know how Finland does it exactly. But here in Germany the rent would be paid directly by the city to the landlord. The addict would not have any real way to get to the money, because he is not involved in this process. But there aren't enough appartments, so despite that we also have homlesness here (not at a USA level though).