Italien besejrede Frankrig 3-1 på San Siro for at sikre sig topplaceringen i deres UEFA Nations League A League 1-gruppe.