The "chile" spelling is from Spanish, particularly Mexican and Central American Spanish. The word is derived from Nahuatl (Aztec).
That said, I'm in northern US and I would spell the pepper "chili"
That said, I'm in northern US and I would spell the pepper "chili"