For more than three hours, a passenger’s dog was inside an overhead bin on United Airlines flight 1284 from Houston to New York after a flight attendant told the passenger to put it there.