Republicans vote to cancel two mortgage programs