a stand-up guy
A stand-up guy is a friend you can count on to back you up, even if you're the one who started the fight.
He jumped in when I got into a brawl with the school principal.
He helped me hide from the cops after I crashed his car.
He stood up for me when I got bullied.