A measure to legalize the use of cryptocurrencies as a form of payment in Brazil was approved by Jair Bolsonaro, who will step down as president of that nation on December 31.