A Hong Kong appeals court has approved a government plan to ban an anthem tied to pro-democracy protests which erupted in the city.