Deal with the Devil
In a broader sense, a Faustian bargain can refer to any deal or agreement in which someone sacrifices their principles or values for material gain or advantage. It's often used to describe situations where the long-term cost of the deal is much greater than the immediate benefits.