Universities in Wales are set to receive a £19 million investment boost.