Court ruling raises possibility Kansas schools can't open