Paxton to pay restitution, do community service, take ethics classes to avoid trial and have charges dropped