Buyers of second and holiday homes face an increase in the tax paid after the Greens forced parliament to back the idea.