(Reuters) – TD Ameritrade has agreed to buy Scottrade for $2.7 billion in a deal that would bring together two of the biggest U.S. discount brokerages, but is expected to face scrutiny from regulators.