Setting up to fail is a psychological manipulation performed on a target in which the target is given a task which is designed to fail as it has an unrealistic objective. The target will become stressed trying to achieve the impossible, particularly if under pressure. Once the task attempt has failed, the outcome can then be used as ammunition to discredit and blame the target. A variation on this is that an otherwise achievable objective is covertly sabotaged and undermined to make it unachievable. In particular, it is a well established workplace bullying tactic.
"Going through the motions" is another application of setting up to fail, for example a sham investigation in which the findings conveniently fail to find any evidence of wrong doing by the authorities involved with setting up the investigation. For example, it has been argued that the 9/11 Commission was set up to fail - see criticism of the 9/11 Commission
(set up to fail).