Fucked them over
To emerge superior or victorious against someone or something after an bad situation.
To destroy or ruin something or somebody.
To destroy or ruin something or somebody.
"During the battle our forces were being fucked hard by the enemy but in the end 'we fucked them over'." ('We emerged victorious over the enemy')