A judge pledged to waive fines against Massachusetts striking teachers if they return to classes