GOP lawmaker takes credit for trillion-dollar infrastructure package after voting against it