The High Court has ruled in favour of the government in a battle over indoor reopening dates in England.