Dayton, legislative leaders head to court over funding