Officials are hoping to defray the costs that have come with a dramatic increase in short-term rentals during the pandemic.