It's been said many times that Trump was born and raised a Democrat. Even now he doesn't even call himself a conservative.
In some, if not many ways, he still has the mindset of a liberal, to an extent.
From the article
@nail1988 posted above
But the president was restrained in his comments: “They’ve ruled. I read the decision, and some people were surprised. But they’ve ruled and we live with their decision. That’s what it’s all about. We live with the decision of the Supreme Court. Very powerful — very powerful decision, actually.”
That didn’t surprise me, given Trump’s background as a Democrat in Manhattan. When he was running in 2015, Trump declined in interviews with me and others to criticize the Supreme Court ruling legalizing same-sex marriage. Given the broad cultural shift on gay issues, he may have concluded there was limited political benefit in criticizing this week’s ruling.