put a monkey wrench in the works

To put a monkey wrench in the works means to do something which will prevent a plan or activity from succeeding. By putting a monkey wrench into something, you are stopping something from happening half-way through or part-way through the activity or plan, and therefore the wrench is stopping it in its tracks. A monkey wrench is literally used to stop a machine from moving any further.