Many Democratic presidential candidates have dismissed the president's Independence Day celebration and have questioned the reasons behind it.