Short-term rentals — for fewer than 30 consecutive days — have largely been barred if hosts are not present, according to state law, though the city and Airbnb have disagreed about how expansive such prohibitions and other complicated city codes should be.