JBG Smith, the Bethesda, Maryland-based company developing Amazon’s second headquarters, has sold an affordable housing complex in Washington, D.C., for $215 million, as it continues to shrink its D.C. footprint and focus on development in Northern Virginia around HQ2.