Chicago teachers avoid strike after reaching new deal