An accounting loophole keeping spiralling SEND deficits from bankrupting councils has been extended for two years.