A U.S. appeals court on Wednesday ruled that Nasdaq could not impose rules requiring companies listed on the exchange to have women and minority directors on their boards or explain why they do not.