Loyalty is great, but if the other situation is going to shore up your immigration situation for the time being, it's a growth oriented first that will get immediate higher pay + equity, seems like you really want to take the new opportunity but feel loyal to your existing employer.
I mean, people understand you have to do what's best for you and that these kinds of opportunities don't grow on your trees. Be gracious, create a runway for your exit to ensure that operations are minimally impacted as best you can.
But in my estimation, seems like this is a no-brainer in the decision department and that since you'd considered leaving the other firm anyway, the other opportunity showing up when it did was fortuitous.
I wouldn't go sharing all of that with them (e.g. i was planning to leave anyway..) and instead be very gracious, relay you've accepting a different position that aligns better with your immediate and future goals and ask how you can help the transition before your exit date.
Good luck.