I think the safety officer meant that white paint prevents the rail from heating up. The heating of rails contributes to problems with derailment. If the heat isn't a contributor, that heat is one less thing you have to fight (as in account for).
But the photo caption paraphrases him and says that the white paint fights (as in prevents) the heat, which uses similar words but a different logic to it (but the same overall meaning).
If I've got that right, then I think the blame lies on whoever wrote this article for making it confusing.