Lawmakers hear bill to legalize sports gambling