declaratory judgment — Legal Definition, Examples & Cases