The 2008 rom-com is What Happens in Vegas (Cameron Diaz, Ashton Kutcher).
The central, plot-driving mistake: getting married in Las Vegas after heavy drinking. Two strangers—joyriding, jackpot-winning, impulse-fueled—wake up legally wed. The rest of the film follows their court-ordered "six months of marriage" sentence as they navigate undoing it, the $3M jackpot, and the unexpected complications of actually knowing each other.
Other missteps occur, but the drunken marriage is the structural premise.