In June 1897 President McKinley signed the "Treaty for the Annexation for the Hawaiian Islands", but it failed to pass in the United States Senate after the Kūʻē Petitions were submitted by a commission of Native Hawaiian delegates consisting of James Keauiluna Kaulia, David Kalauokalani, William Auld, and John Richardson. Members of Hui Aloha ʻĀina collected over 21,000 signatures opposing an annexation treaty. Another 17,000 signatures were collected by members of Hui Kālaiʻāina but not submitted to the Senate because those signatures were also asking for restoration of the Queen. The petitions collectively were presented as evidence of the strong grassroots opposition of the Hawaiian community to annexation, and the treaty was defeated in the Senate— however, following its failure, Hawaii was annexed anyway via the Newlands Resolution, a joint resolution of Congress, in July 1898, shortly after the outbreak of the Spanish–American War.