idiom

An own goal.

Theme: consequences Keyword: play

means

An action that unintentionally harms the interests of the person or group taking it.

Example

The candidate's attack on local teachers was an own goal.