Lawsuit on illegal hotels leads to proposed law change