A federal judge has rejected two derivative actions seeking to hold Merrill Lynch officers and directors liable for enormous losses in the market for collateralized debt obligations and other mortgage-backed securities.