Spending towards temporary housing for the homeless in Dudley risen by several times over since 2018-19, new figures show.