The bill would waive capital gains tax for building owners who sell to affordable housing developers.