In the Senate, he supported the Spanish–American War and the annexation of the Philippines and Puerto Rico; the Foraker Act gave Puerto Rico its first civil government under American rule. He came to differ with President Theodore Roosevelt over railroad regulation and political patronage. Their largest disagreement was over the Brownsville Affair, in which black soldiers were accused of terrorizing a Texas town, and Roosevelt dismissed the entire battalion. Foraker zealously opposed Roosevelt's actions as unfair, and fought for the soldiers' reinstatement. The two men's disagreement broke out into an angry confrontation at the 1907 Gridiron Dinner, after which Roosevelt worked to defeat Foraker's re-election bid. Foraker died in 1917; in 1972, the Army reversed the dismissals and cleared the soldiers. Mount Foraker, the second highest peak in the Alaska Range, and the third highest peak in the United States, was named for him in 1899.