The South Carolina sheriff's department whose deputy tossed a student across a classroom after she refused to give up her cellphone has agreed with the U.S. Justice Department to do its part in ending what the federal agency calls a "school-to-prison pipeline."