Wokingham Borough Council will buy more homes for Ukrainian and Afghan refugees using money provided by a government grant.