einen Strich durch die Rechnung machen

Etymology
lit. 'to strike out someone’s calculation'.

Verb

 * 1) to put a spoke in someone's wheel  to thwart someone's plans