District, teachers ink deal