Twitter’s party already had been criticized as representing a male-dominated culture in Silicon Valley.