What was the main reason for the French alliance with the Americans?