The US president called for the rejection of “the perennial prophets of doom” during his speech.