Trump branded, browbeat and prevailed. But his big bill may come at a political cost