Legislation would make refunds mandatory for canceled flights