necessary parties rule — Legal Definition, Examples & Cases