Democrats holding their national convention in Denver have approved a party platform that meets the specifications of Barack Obama.