Slim margin sees Alabama Senate reject lottery and casino bill