Students with too many unexcused absences would be barred from playing sports and could lose their driver’s license under legislation approved by the state Senate Thursday.