take one for the team
to perform some unpleasant task on behalf of others, or accept a consequence that falls disproportionately on the subject while benefiting the larger group; generally done from a sense of camaraderie and team spirit that one hopes will be appreciated…