Thousands of beds used to accommodate Ukrainians fleeing the war are expected to be freed up for student accommodation this year, the Higher Education Minister has said.