The potential deal could be beneficial to both parties, giving a boost to the mayor’s ambitious housing plan and saving the district from excess expenses.