Since you conveniently stopped at the beginning of the story, let me finish it for the sake of clarity.
In 2018, the president was Michel Temer, not Bolsonaro. Temer had been Dilma Rousseff's vice president and took office after she was impeached in 2016. Dilma, by the way, was Lula's handpicked successor. That December, Temer signed Law 13.756, which legalized sports betting but left the regulation for later.
That regulation came under Lula: on December 29, 2023, he signed Law 14.790, which set a licensing fee of up to R$ 30 million and authorized betting companies to operate legally in Brazil.
So, technically speaking, it started with a president elected on Dilma's ticket and was sealed by Lula.