Obama: Bush policies strengthen Iran, Hamas