MaineHousing awarded $2 million to fund pilot programs aimed at preventing student homelessness in five school systems, including Portland’s, the agency announced.