The war remained a frustrating stalemate for two years, with over 30,000 Americans killed, until an armistice ended the fighting in 1953.