Last month, after a United gate agent at Denver International Airport barred female passengers from boarding because their leggings violated the airline’s clothing policy, an angry witness accused the company on Twitter of policing women’s clothing.