As part of a $29.5 million roundup of affordable housing expenditures, the Sunnyvale City Council unanimously approved spending $12.5 million to buy a lot at 1171 Sonora Court, to help developers MidPen Housing build 170 affordable apartments. It will be the sixth 100% affordable housing development in Sunnyvale where the city government owns the land. City officials and advocates said government land ownership helps keep the property affordable over the long term.