Brazilian lawmakers have approved a complete regulatory framework for crypto, regulating the use of bitcoin as payment.