We got married in the U.S. to start immigration before Trump, but it wasn’t because we were worried about our marriage not being recognized.
The difference between Roe and Obergefell is that Obergefell is widely popular, has bipartisan support, and all gay rights cases since have only expanded the rights of gay people, and were by-and-large written by conservative justices (Bostock v. Clayton County is arguably more important than Obergefell and it was written by Neil Gorsuch.)
Trump is hostile to trans rights, but he’s never really been opposed to gay rights in any of his campaigns of terms. I only mention that as a lot of the angst many gay people feel relates to Trump, and while I get it, he’s never really been anti-gay, at least in recent memory.
Anyway even if it was overruled, there’s precedent for this previously — in the 2000s and 2010s when courts would allow gay marriage then states would amend their constitutions to ban it again, anyone who was married before the re-ban was treated as married by the state that had issued the license.