While a politician can't help who endorses him, he can decide whether to accept or reject the endorsement. And in this case, McCain appeared on stage with Hagee to accept the endorsement.
On the other side, witness Barack Obama's "denounce and reject" of Louis Farrakhan's endorsement...