Debt ratings agency Moody’s has warned that Huntington, Long Island, could lose its top credit rating if the town funnels more money away from public pensions to meet short-term spending needs, a controversial practice that has skyrocketed among New York’s cash-strapped municipalities.