Spurs survive a dramatic Manchester United comeback and their own errors to reach the Carabao Cup semi-final.