A decisive American victory at Saratoga persuaded Britain’s old enemy France to enter the war on the revolutionary side.