Trump was one of several prominent Republicans in the incoming administration to denounce the bill on social media.