Morgan Stanley has agreed to pay $249 million to resolve federal investigations into its block trades business, officials at the U.S. Attorney's Office for the Southern District of New York and the U.S. Securities and Exchange Commission announced Friday.