substantial or motivating factor — Legal Definition, Examples & Cases