Term: bad-weather friend
Example: i didn't think jerod would stick by me, but when i got into trouble, he backed me up; he turned out to be a real bad-weather friend
Definition: a friend who supports you even when it is not easy or convenient to do so