The white knight is a chess-piece, often associated with the abstract battle of good against evil. This is the origin of most of the other meanings. See also Black Knight.
The White Knight is a character in Through the Looking Glass by Lewis Carroll. Based on the chess-piece, this character is a bumbling do-gooder with a penchant for useless inventions.