The American state of Colorado has passed a bill aiming to protect consumers brain waves collected by gadgets.