Family of three residents burned to death in a building fire cannot sue the city of Philadelphia for the allegedly botched rescue attempt, a federal appeals court has ruled.