A US politician has won an upset election victory on the back of a simple but very effective message: "F— Trump".