The Court of Appeal says the government was entitled to take efforts to control the spread of the pandemic.