The federation, which represents 85 student groups, will invest up to $2 million to build affordable apartments for at least 150 students.