El Salvador's legislature voted to adopt bitcoin as legal tender in an early Wednesday morning vote, accepting President Nayib Bukele's pitch.