The Los Angeles City Council has unanimously approved the first set of proposed rules to govern Airbnb Inc. and other companies in the short-term rental industry.

The ordinance, passed on Wednesday, caps at 120 days the amount of time each year that a residential unit can be rented out on Airbnb, HomeAway.com Inc. and other short-term rental platforms, with the right to appeal for an extension. Only primary residences can be used for short-term rentals and any units subject to the city’s rent control ordinance would be barred altogether from short-term rentals.

The rules must still go back to the city Planning Commission to formalize some of the details and then will come back to the full council later this year for a final vote. Also, some tweaks could still come as various councilmembers asked city staff to look into proposals such as allowing short-term rental hosts to rent out their units for an entire year if they show proof they intend to remain on site the whole time.

Nonetheless, the vote is a major milestone in the four-year effort to regulate the burgeoning short-term rental industry.

Neighborhood groups and the hotel industry had long called for controls on the industry, contending that the practice disrupted neighborhoods as de facto hotels were allowed to operate unchecked. Housing advocates also argued that commercial short-term rental operators were taking units off the long-term rental market at a time when there is a shortage of apartment units.

“We applaud the Los Angeles City Council for taking a critical step that provides common-sense protections, holds short-term rental platforms accountable in an effort to reduce their negative impacts on neighborhoods across Los Angeles,” Katherine Lugar, chief executive of the American Hotel & Lodging Association, said in a statement. “This ordinance will protect affordable housing for Los Angeles residents including hotel employees, as well as preserving the fabric of neighborhoods.”

But Airbnb, HomeAway and their backers had argued that any broad attempt to limit short-term rentals would deprive Los Angeles residents of the ability to earn extra income at a time when living costs have skyrocketed. Many short-term rental hosts have testified at city hearings that without this extra income, they would be forced to abandon their units because they could not afford the cost.

“We are pleased with the City Council’s decision to move forward with this proposal, which will allow thousands of Angelenos to earn valuable supplemental income by sharing their homes year-round," John Choi, Southern California policy manager for Airbnb, said. "This is an important step in the right direction and we look forward to continuing our work with city leaders as they finalize a clear and balanced home sharing policy for Los Angeles.”

Philip Minardi, director of policy communications for HomeAway, said vacation rentals in Los Angeles are "a critical source of local economic growth."

"In 2016 alone, rentals helped generate $1.5 billion in economic activity and supported nearly 14,000 jobs," he said. “We are encouraged by council’s recognition of this long-standing tradition and believe any final law governing short-term rentals should allow all types of rentals, including whole-homes. Los Angeles has long been home to a responsible vacation rental community and regulations should ensure traditional vacation rentals remain an option. We look forward to continued collaboration with council, the mayor’s office and the community at large.”

All short-term rental agreements will be subject to a 10 percent “bed tax,” with most of the tax proceeds divided equally among the 15 council districts.