Kansas court rules school funding not adequate