Clinton and Sanders clashed on U.S. involvement in the Middle East, gun control and economic policy as they opened the first Democratic presidential debate.