Senate votes to extend first-time homebuyer tax credit