New York City joined other localities this week in pledging to buy up and forgive residents' unpaid medical bills. The trend started in Cook County, Ill., and is spreading around the country.