Illinois legislator passes bill to legalize online casino in the state