The government has spent nearly three years on plans to regulate the use of loot boxes.