The great thing about the free market is you get the choice. You don't have to pass a law to force everybody to also do as you choose.
There are definitely problems with some AirBNBs. Renting out an apartment as if it was a hotel room should not be allowed. However. that should be a contract issue between tenant/landlord or owner/HOA, and also a local zoning issue.
That said, there are also times that AirBNBs are very worthwhile. I've stayed in homes in the desert, far away from anything else. I've stayed in non-touristy neighborhoods in Venice, Stockholm, and Havana, that let me get away from the common areas and see local life.
Hotels definitely have its pros and cons, as do AirBNBs, but there should not be federal regulation outright banning it.