Gambling group dodges losing licence after swiftly improving consumer protection and money-laundering controls