The tax code has long offered rewards for buying rather than renting, an equation that has troubled some economists — and that the Republican bill upends.