A legislative win for the president could hurt his party given the tax and spend measure’s low popularity