Montreal has passed tighter restrictions for short-term rentals two years after a fire in a building that had listed illegal rentals.