In a city where the median home price is close to $1.5 million and nearly a quarter of renters routinely spend more than half their income on housing, a new $8.4 million loan to MidPen Housing filled the last gap in financing for a fully affordable development expected to break ground near the Capitol light rail station by November.