Rising rents in Philadelphia and expiring 30- and 40-year federally assisted affordable housing contracts are combining to present a major challenge for Philadelphia public officials: balancing the interests of tenants living in affordable housing with those of their landlords seeking to take advantage of expiring contracts.