Several Barclays executives were aware that the bank was falsely representing how algorithms in its dark pool worked and how client orders were routed, according to an amended complaint prepared by New York’s attorney general.