A judge has ruled that polls must stay open longer after at least 25 people were killed when tornadoes tore through parts of the state overnight.