The state Senate has passed legislation that would bar students with too many unexcused absences from playing sports and could result in the loss of their driver's license.