Colorado state senators on Friday passed a bill allowing Rivian and other electric vehicle manufacturers to sell directly to consumers in the state — but they struck a provision that would have allowed all automakers, including those with franchised dealers, to do the same.