Kansas Supreme Court rules school funding inadequate