Tops Friendly Markets' bid to acquire the majority of Penn Traffic's assets, including 79 supermarkets, has been approved by the US bankruptcy court.