Kansas Supreme Court rules on school funding plan