State gambling regulators on Monday issued the first temporary permits for fantasy sports companies to operate legally in New York.

The New York State Gaming Commission issued the permits for companies DraftKings, FanDuel, Yahoo, FantasyDraft and Draft.

“As the newly enacted law requires, the Commission regulates all aspects of interactive fantasy sports, including ensuring the operators put important consumer protections in place,” said Commission Executive Director Robert Williams. “While the Commission continues work on formal regulations for these games, these temporary permits get companies up and running in New York State while assuring resident players that safeguards are in place.”

State lawmakers in June approved legislation that regulates and legalizes fantasy sports in New York after Attorney General Eric Schneiderman challenged the legality of the activity, forcing major operators to suspend business in the state.

It’s estimated $4 million in revenue is expected from fantasy sports regulation in New York.