The unanimous justices said the potential for declaratory relief, which can trigger fee awards, can encourage public agencies ...