A federal appeals court has rejected the first law in the nation requiring airlines to provide food, water, clean toilets and fresh air to passengers trapped in a plane delayed on the ground.

The 2nd U.S. Circuit Court of Appeals ruled Tuesday that New York's new state law interferes with federal law governing the price, route or service of an air carrier.

The appeals court said the new law was laudable and the circumstances that brought them about were deplorable but only the federal government has the authority to enact such a law.

The law was challenged before the appeals court by the Air Transport Association of America, the industry trade group representing leading U.S. airlines.