Epic might be one of the only companies doing microtransactions correctly with Fortnite. Fortnite Battle Royale is free to play so it makes sense that they monetize somehow, but there is no randomness to purchases in the game. You buy items you want and you see exactly what you're getting. The paid for version of the game recently switched their lootbox mechanic so that you also see what's in the boxes before you buy them.
I’m not familiar with the legislative landscape you’re referring to, but it doesn’t seem like most of the other major companies have gotten rid of their lootboxes, so Epic is doing something right...