If any municipality which is a home rule unit, pursuant to a valid exercise of its home rule powers, by ordinance imposes a tax upon the privilege of use and occupancy of a hotel or motel room within a municipality, any public institution of higher education within such municipality which operates a hotel or motel within such municipality and charges rental for the occupancy of rooms in such hotel or motel shall be subject to and comply with the terms of such ordinance, unless such ordinance provides otherwise. Nothing in this Act shall be construed to provide any limitation on the power of any home rule unit to impose and collect any such tax.
65 ILCS 80/2