The loss sets up a potential shortfall that could translate into higher tax bills for residents and affect state funding for school districts.