A new bill aimed at regulating cryptocurrency transactions has been passed in the US.