A federal judge ruled slot machines in bars, restaurants and convenience stores around Missouri are illegal gambling devices.