Missouri 'gray machines' legalization bill heads to state Senate