More homes to temporarily accommodate homeless people will be bought by East Renfrewshire Council after a £1m investment was agreed.