cut the ground from under someone's feet

Verb

 * 1) To thwart someone's plans by anticipating them and preventing their success.