Nearly 300 passengers stuck on planes overnight