MONTREAL — Quebec's Court of Appeal has upheld a 2022 lower court ruling that found Canadian Pacific Railway did not have legal liability for the Lac-Mégantic rail disaster that killed 47 people.