Council takes on affordable housing