Congress overrode his veto, but Hayes's monetary policy forged a compromise between inflationists and advocates of hard money. He used federal troops cautiously to avoid violence in the Great Railroad Strike of 1877, one of the largest labor strikes in U.S. history. It marked the end of the economic depression called the 'Panic of 1873'. Hayes was determined to preserve the law protecting black voters, and he vetoed the appropriation. The Democrats did not have enough votes to override the veto, but they passed a new bill with the same rider.