TV star Simon Cowell has pledged £50,000 to help a four-year-old boy get life-saving cancer treatment.