The federal government is investing at least $2.7 billion to build more than 18 housing projects across Toronto.