The Kansas Supreme Court has given state lawmakers until the end of June to pass a new school funding system that ensures adequate education for all students.