The legal reasoning behind the Justice Department’s unusual reversal this week of an opinion that paved the way for online gambling hewed closely to arguments made by lobbyists for casino magnate and top Republican donor Sheldon Adelson.

In April 2017, one of the lobbyists sent a memo to top officials in the Justice Department, arguing that a 2011 opinion that benefited online gambling was wrong.