Spending towards temporary housing for the homeless in Bristol more than trebled since 2018-19, new figures show.