Wigan Warriors defeated their derby rivals St Helens with a magnificent defensive performance to earn a place in the Challenge Cup final.