For anyone surprised to see Trump deal with the Democrats on legislation this past week you only have to look at it from Trump's survival perspective. He is looking at an expanding investigation from Robert Mueller that could provide the basis of impeachment hearings if the Democrats take back the House of Representatives next year. Trump can hope that if the Democrats control one or both houses of Congress they will prefer to deal with a president who will compromise than one like Mike Pence who will push the conservative agenda more successfully than Trump. For Democrats the choice of a Pense presidency or a newly moderate Trump presidency suddenly looks like a no brainer. This shouldn't be a surprise when you remember that survival is the only consistent personal quality that Trump has ever shown. The extent that Trump will go to survive was shown when he was willing to "launder" Russian oligarchs money when all the banks would not loan him money to save his real estate empire.
With Trump's need to "deal" look for more deals with Chuck and Nancy.