The man was eventually restrained and the plane’s cockpit was blocked with a beverage cart, the complaint said.