Short-term apartment rentals ruled illegal